> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.tradingvps.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Windows Defender high CPU VPS, fix antivirus lag VPS, NinjaTrader slow performance VPS



|| “Learn how to fix high CPU usage on Windows VPS caused by Windows Defender and antivirus lag. Optimize your VPS for faster NinjaTrader performance with these proven tips.”


| Sometimes Windows Defender runs a full scan at startup, which can cause very high CPU usage (close to 100%). This may result in applications like NinjaTrader freezing on “calculating.” In this tutorial, we’ll go step by step to adjust Windows Defender settings so your system runs smoothly.


### Common Symptoms

* CPU usage spikes to **90–100%** at startup.
* **NinjaTrade**r or \*\*MultiCharts \*\*freezes during calculation.
* Constant lag even when running only a few charts or strategies.

1. Open Windows Security

Click the **Start Menu** → type **Windows Security** → press **Enter**.


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_nb4eb9.png)

2. Go to **Virus & Threat Protection**

* In the left-hand menu, click **Virus & threat protection**.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_jevck4.png)

3. Open Manage Settings

* Scroll down to **Virus & threat protection settings**.
* Click **Manage settings**.

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1dpx5la.png)

4. Adjust **Real-time Protection**

* You can temporarily turn off **Real-time protection** before launching NinjaTrader and turn it back on afterward.
* This prevents Defender from scanning all files during startup.


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1jiokqm.png)

5. Manage **Startup Processes**

* Press **Ctrl + Shift + Esc** to open Task Manager
* **Disable apps** that you don’t need to start with Windows.


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1u09otp.png)

### Add Exclusions for Trading Apps

* Open **Windows Security** from the Start menu.
* Go to: **Virus & Threat Protection → Manage Settings → Exclusions**.

Add exclusions for: 

* NinjaTrader or MultiCharts installation folder
* Data folders (e.g., Documents\NinjaTrader  


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_gtgvyf.png)

* Click **Virus & threat protection**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_18qngqb.png)

* Click **manage settings**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1izimzv.png)

* Click **add or remove** **Exclusions**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_17o632y.png)

* Click **add an exclusion**
* And Click Folder

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_q72xkx.png)

* Click **NinjaTrader 8**
* And Select Folder 


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_8z6nfj.png)

* Click **NinjaTrader 8 Backup**
* And Select Folder 


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1ve2sii.png)

*  And **Complete Add Exclusions**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1r8wluk.png)

### Schedule Scans for a Different Time

* Open **Task Scheduler**
* Navigate to: **Task Scheduler Library → Microsoft → Windows → Windows Defender**
* Double-click **Windows Defender Scheduled Scan** and change the schedule to a time when you don’t use the VPS (e.g., at night).


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_5ksjjx.png)

* Click **Create basic Task**


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1q8eg6h.png)

* Enter the name **Windows Defender Scheduled Scan** 
* Click **Nex**t


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1r2g4a6.png)

* Choose **which Task you will use.**
* Click **Nex**t


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_77o8zn.png)

* Choose **Recur every**
* Click Next


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_yxnch.png)

* Select **Start a Program**
* Click **Next**


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_z8coty.png)

* **Run Scan Manually with Command Line**

**"%ProgramFiles%\Windows Defender\MpCmdRun.exe"**

-Scan -ScanType 1

And **Click Next**


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1wc7j9o.png)

* Click **Finish**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_12v5q6.png)

* Select Run whether user is logged on or not 
* And **Click Ok**

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_z3rxcv.png)

* Enter the **password and click OK.**


![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_1fph02e.png)

* Look, it's ready **Windows Defender Scheduled Scan** 

![](https://storage.crisp.chat/users/helpdesk/website/-/5/4/1/3/5413a8a0321f3000/image_16hh739.png)

###### And finally restart the vps

###### I hope the problem is resolved.