00Hours
00Minutes
00Seconds

ENDING SOON — SAVE 50% ON YOUR FIRST VPS INVOICE

Menu

Optimize MetaTrader 4 For Multi-Core VPS Plans

Steps to optimize your MetaTrader platform for use with mutli-core VPS plans – ensuring the best performance possible

Team NYCServers
5 min read

Getting Started

MetaTrader 4 and MetaTrader 5 are powerful trading platforms, but they can sometimes experience lag or “not responding” issues when running on multi-core VPS systems. This guide will show you how to optimize your MT4/MT5 performance by configuring CPU affinity settings to eliminate these performance issues.

Understanding how to properly configure your trading platform ensures smooth operation and prevents interruptions during critical trading periods. This optimization technique is particularly important for traders running multiple MT4/MT5 instances or using Expert Advisors that require consistent performance.

Understanding the Issue

Non-Technical Explanation

Due to the nature of the MetaTrader software, it sometimes has performance issues on multi-core VPS systems. This is related to the software itself, and not our service. This same issue can happen with any VPS service, regardless of the provider.

Technical Explanation

The MetaTrader software is a 32-bit application and therefore does not always operate smoothly with virtual multi-core VPS systems. To work around this issue, we will be using the Windows CPU affinity settings to bind the MetaTrader service to a single CPU core, which eliminates conflicts and ensures stable performance.

Step-by-Step Instructions

Step 1: Prepare Your MetaTrader Platforms

Before configuring CPU affinity settings, you need to prepare your trading environment:

  1. Open all MT4/MT5 platforms that you will be using on the VPS
  2. Ensure each platform is fully loaded and connected to your broker’s servers
  3. Log into your trading accounts and verify that all platforms are functioning normally

Step 2: Access Task Manager

To access the Windows Task Manager and view your system processes:

  1. Right-click on the blue taskbar at the bottom of your VPS screen
  2. When the context menu appears, left-click on “Task Manager”
Right-clicking on Windows taskbar showing Task Manager option in context menu
Right-click on the taskbar and select Task Manager from the context menu

Step 3: Navigate to Process Details

Once Task Manager opens, you need to locate the MetaTrader processes:

  1. When the Task Manager program opens, click the “Details” tab on the tabbed menu bar
  2. Look through the process list and find the “terminal.exe” files – these represent your MT4/MT5 platforms
  3. You should see one terminal.exe process for each MT4/MT5 platform you have running
Task Manager Details tab displaying terminal.exe processes for MetaTrader platforms
Task Manager Details tab showing terminal.exe processes for each MT4/MT5 platform

Step 4: Set Processor Affinity

Now you’ll configure which CPU core each MetaTrader platform should use:

  1. Right-click on the first terminal.exe file in the process list
  2. When the context menu appears, select “Set Affinity”
  3. This will open the Processor Affinity dialog box
Right-click context menu on terminal.exe process showing Set Affinity option
Right-click on terminal.exe and select “Set Affinity” from the context menu

Step 5: Configure CPU Core Assignment

In the Processor Affinity dialog, you’ll restrict MetaTrader to use only one CPU core:

  1. Uncheck all CPU checkboxes except for CPU 0
  2. When completed, only CPU 0 should have a checkmark next to it
  3. Click the “OK” button to apply the changes
Processor Affinity dialog with only CPU 0 selected and other cores unchecked
Processor Affinity dialog showing only CPU 0 selected for optimal MetaTrader performance

Step 6: Repeat for All MetaTrader Instances

Complete the optimization process for all your trading platforms:

  1. Repeat steps 4 and 5 for each additional terminal.exe process that you have running
  2. Ensure that all terminal.exe files have CPU 0 set under processor affinity
  3. Verify that each MetaTrader platform is now running smoothly without lag or “not responding” issues

Important Considerations

Temporary Settings

Please note: The CPU affinity settings reset each time that you restart the MT4/MT5 platforms. If you ever close and re-open your MetaTrader software, you will need to reset the CPU affinity again using the steps above. This behavior is caused by Windows, so there is nothing that can be done to make the change permanent after software restart.

When to Reapply Settings

You will need to reconfigure CPU affinity in the following situations:

  • Platform Restart: After closing and reopening any MT4/MT5 platform
  • VPS Reboot: After restarting your VPS server
  • Software Updates: After MetaTrader platform updates
  • New Installations: When installing additional MT4/MT5 platforms

Performance Benefits

After applying these CPU affinity settings, you should experience:

  • Eliminated Lag: Reduced or eliminated “not responding” messages
  • Smoother Operation: More responsive platform interface and charting
  • Stable Expert Advisors: Better performance for automated trading systems
  • Consistent Execution: More reliable order processing and trade execution

Troubleshooting

If you continue to experience performance issues after applying CPU affinity settings:

  • Verify Settings: Double-check that all terminal.exe processes are set to CPU 0
  • Restart Platforms: Close and reopen your MT4/MT5 platforms, then reapply affinity settings
  • Check System Resources: Monitor your VPS CPU and RAM usage to ensure adequate resources
  • Update Platforms: Ensure you’re running the latest version of your trading platforms
  • Contact Support: If issues persist, reach out to our technical support team

Conclusion

Optimizing MetaTrader 4 and MetaTrader 5 for multi-core VPS systems is essential for maintaining stable and responsive trading performance. By configuring CPU affinity to bind each MetaTrader process to CPU 0, you can eliminate lag and “not responding” issues that commonly occur with 32-bit trading platforms on virtual environments.

Remember that these settings need to be reapplied each time you restart your trading platforms, so bookmark this guide for easy reference. With proper CPU affinity configuration, your MetaTrader platforms will run smoothly and reliably, ensuring you never miss important trading opportunities due to software performance issues.

If you have any questions about this process or would like our technical team to configure the CPU affinity settings for you, please don’t hesitate to contact us by opening a support ticket or emailing [email protected]. Our VPS experts are available 24/7 to assist with your trading platform optimization needs.

NYC Servers Team headshot

About the Author

NYC Servers Team

Editorial Team

Our editorial team brings together expertise in forex trading, VPS hosting, and financial technology to deliver comprehensive guides and insights for traders.

Areas of Expertise

Forex VPSTrading TechnologyServer Infrastructure

Finally, A Forex VPS
That

Join 10,000+ traders who already upgraded to smarter, faster trading with our Forex VPS service.