Sizing a Windows VPS for Multiple MT4 and MT5 Terminals

How to work out the CPU and RAM a Windows VPS needs for several MetaTrader terminals: measure one terminal, multiply, and leave headroom for spikes.

dns WindowsVPS Team calendar_today schedule5 min read
Sizing a Windows VPS for Multiple MT4 and MT5 Terminals
tocOn this page 6 sections
  1. What actually uses the resources
  2. Step 1: Measure one terminal properly
  3. Step 2: Do the arithmetic
  4. Step 3: Cut the waste before you buy more
  5. Running the terminals side by side
  6. FAQ

To size a Windows VPS for several MT4 or MT5 terminals, measure what one of your terminals uses, multiply by the number you plan to run, and add memory for Windows and your RDP session. Then keep about 25–30% of CPU and RAM free for spikes at news releases and market open. Usually RAM runs out first. CPU becomes the limit when your Expert Advisors do heavy work on every tick, or when you run the Strategy Tester on the same machine.

What actually uses the resources

A MetaTrader terminal with nothing on it uses very little. The load comes from what you add to it:

  • Open charts and history depth. Every chart keeps its bars in memory. A terminal with dozens of charts and a high bar limit can use several times the RAM of one with a few charts.
  • Market Watch symbols. Every symbol you subscribe to streams ticks, and the terminal has to process each one.
  • EAs and indicators. Code that recalculates on every tick, loops over full history or redraws many objects costs CPU on every price change. Multiply that by the number of charts it runs on.
  • The Strategy Tester. Backtests, and especially MT5 optimizations that start several testing agents, can use every core you have. Running them on the VPS that trades live is the most common cause of slowdowns.

MT4 is a 32-bit application, so a single MT4 terminal can only address a limited amount of memory, no matter how much the VPS has. MT5 is 64-bit and has no such ceiling. Either way, several small terminals are easier to watch and contain than one very large one.

Step 1: Measure one terminal properly

Set up one terminal exactly as it will run in production: same broker, charts, symbols and EAs. Let it run through an active trading session. Then check it from PowerShell on the VPS:

Get-Process terminal, terminal64 -ErrorAction SilentlyContinue |
  Select-Object Id, ProcessName, Path,
    @{n='WorkingSetMB';e={[math]::Round($_.WorkingSet64/1MB)}},
    @{n='PrivateMB';e={[math]::Round($_.PrivateMemorySize64/1MB)}},
    CPU

Use PrivateMB as your per-terminal memory figure. The Path column shows which installation each process belongs to. To see how CPU behaves over time, sample the processor counter during a busy period:

Get-Counter '\Process(terminal*)\% Processor Time' -SampleInterval 5 -MaxSamples 24

Write down both the average and the peak. Size for the peak, because that is when your EAs most need to respond.

Step 2: Do the arithmetic

  1. RAM: (peak private memory per terminal × number of terminals) + memory for Windows Server, Defender and your RDP session. On a lean Server install, roughly 2 GB is a reasonable starting allowance for the OS. Add 25–30% headroom on top.
  2. CPU: add up the peak CPU of all terminals and compare it with the vCPUs you have. If the total stays well under the core count, you're fine. If it gets close to one full core per terminal, either simplify your EAs or move to a plan with more vCPUs.
  3. Disk: each terminal keeps its own history and logs. Leave room for them to grow, and check the log folders from time to time.

After the terminals have run for a full week, check that Windows isn't using the page file heavily and that CPU ready time feels normal. Sluggish charts over RDP are often the first sign that you've overcommitted.

Step 3: Cut the waste before you buy more

  • Lower Max bars in history and Max bars in chart under Tools → Options → Charts. Most EAs need only a small part of the default depth.
  • Close charts that no EA runs on, and hide symbols in Market Watch that nothing trades.
  • Turn off news and sounds in terminals that don't need them.
  • Run backtests and optimizations on a separate machine, or outside market hours.
  • Minimize terminals you aren't watching, so less time goes into redrawing them.

Running the terminals side by side

Install each terminal in its own folder, one per account or broker. Start each one with the /portable switch so its data stays in that folder and is easy to back up or move. If one terminal has a heavy EA that keeps slowing the others, you can pin it to particular cores:

$p = Get-Process terminal64 | Where-Object Path -like 'C:\MT5-BrokerA\*'
$p.ProcessorAffinity = 0x3   # cores 0 and 1 only

Affinity resets when the terminal restarts. For a lasting setup, start the terminals from a script. Our guides on setting scheduled task priority and launching apps automatically at RDP sign-in show how to start every terminal in a set order after a reboot. You can read more about plans built for this workload on our Windows VPS for forex trading page.

FAQ

Should I add more vCPUs or more RAM first?

Look at your measurements. If memory is close to full or the page file is busy, add RAM. If CPU stays high during active sessions while memory has room, add vCPUs. For most setups with several terminals, RAM runs out first.

Is it better to run one terminal with many charts or several terminals?

You need separate terminals for separate accounts anyway. Even on one account, splitting heavy EAs across terminals means one frozen or crashed terminal doesn't stop everything else. It also makes it clear which EA is using the resources.

Can I run MT4 and MT5 on the same VPS?

Yes. They install into separate folders and run independently. Size them with the same method: measure each type and add the figures together.

Run this on your own Windows VPS

Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.

Buy a Windows VPS →

dns

Written by the WindowsVPS Team

We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.

About WindowsVPS Windows VPS guides All articles

Ready to deploy your server?

Windows or Linux VPS — up and running in under 60 seconds.