Knowledgebase: Trader's Desktop
High RAM utilization by MT4
Posted by Barry Bahrami on 19 May 2009 02:02 PM

Some subscribers have reported a successful resolution by reducing the max bars in the chart and history. This is probably occurring because an extra decimal was added by the broker, which requires more data to store the same chart. It is worth reducing max bars before reinstalling MT4.

To adjust from MT4: tools->options->charts tab. Reduce the number of bars in the chart and/or history. Click OK. close/open MT4.

---
(Wackena) Two possible flaws in current MT4 Terminal.


1) It appears that MetaTrader 4 Terminal M1 tick data received is stored
in RAM. How fast memory is used is proportional to number of pairs
running . When MT4 is re-started, this memory stored tick data is
written to .hst file and memory usage drops. So, the more pairs that
are running, the faster the memory is used. Also, downloaded History
Center data is also temporarily stored in memory. After MT4 is closed,
data is written to .hst file and memory usage drops. I also see memory
usage increase when i open History Center. I believe this is due to
calculating other timeframes from stored received M1 tick data. This may
be a flaw in MT4. It should routinely auto write M1 tick data to .hst
file to reduce memory usage. The only way I see to managed memory
usage is to routinely re-start MT4 terminal.


2) People running the Strategy Tester could really use up memory fast
when downloading History Center data. The more pairs that is being
tested the higher the memory usage will be due to when History Center
is opened, all previously tested pairs will be recalculated. To stop
this, all .hst files need to be deleted or MT4 Terminal needs to be re-
installed.

Note this bug has been reported to MetaQuotes by Wackena.
---


If your VE has exceeded RAM limits from this issue then we also recommend that you reboot your VPS. MT4 and/or the VPS can malfunction if it does not have enough RAM to operate.

You can determine the RAM usage of your MT4 terminal by following the instructions in this CNS KB Article:

https://helpdesk.commercialnetworkservices.net/index.php?/Knowledgebase/Article/View/185/1/verify-ram-usage


Note that this may have nothing to do with the strategy tester. We will continue to update this document as we work through the problem.

(700 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
© 2016 Commercial Network Services. All rights reserved.
No content may be reproduced or redistributed without express written permission on CNS letterhead.
Only Commercial Network Services subscribers are authorized to use our content during their subscription period.
Permission to use our content may be revoked at any time, and at the sole discretion of Commercial Network Services.
Some content on this site is © by their respective owners.