Download MetaTrader 5

Is it possible to limit ram usage by Mt4 instance?

To add comments, please log in or register
ANDIBELLO
90
ANDIBELLO  
Is it possible to limit ram usage by Mt4 instance? How can an user do it?
Ex Ovo Omnia
3352
Ex Ovo Omnia  
ANDIBELLO:
Is it possible to limit ram usage by Mt4 instance? How can an user do it?

Even if you could set such a limit, what would you expect to happen when the application limit gets hit?
ANDIBELLO
90
ANDIBELLO  
Ex Ovo Omnia:

Even if you could set such a limit, what would you expect to happen when the application limit gets hit?


I expect it would be caching into page/swap file without getting unstable.


When my instance of MT4 hits around 850 MB usage it becomes unstable as on screenshot.

There is a plenty of free RAM  still available in Windows 8.1.


Does MT4 has upper limit of RAM usage where it becomes unstable or it is a bug of my indicators ?

Carl Schreiber
7301
Carl Schreiber  

You can contol the ram usage by these variables:

TERMINAL_MEMORY_PHYSICAL

Physical memory in the system, Mb

int

TERMINAL_MEMORY_TOTAL

Memory available to the process of the terminal , Mb

int

TERMINAL_MEMORY_AVAILABLE

Free memory of the terminal process, Mb

int

TERMINAL_MEMORY_USED

Memory used by the terminal , Mb

int

Stanislav Korotky
21621
Stanislav Korotky  
ANDIBELLO:

I expect it would be caching into page/swap file without getting unstable.

When my instance of MT4 hits around 850 MB usage it becomes unstable as on screenshot.

There is a plenty of free RAM  still available in Windows 8.1.

Does MT4 has upper limit of RAM usage where it becomes unstable or it is a bug of my indicators ?

Terminal should not become unstable due to bugs in pure MQL programs (unless they use DLL) - otherwise it'd crash all the time. If you believe that the instability is related to memory consumption this can be MT4 bug. You should write to the service desk. Please provide as much details as possible. Of course, MT should normally utilise swap caching and survive until harddisk is full.
Ex Ovo Omnia
3352
Ex Ovo Omnia  
ANDIBELLO:


I expect it would be caching into page/swap file without getting unstable.


When my instance of MT4 hits around 850 MB usage it becomes unstable as on screenshot.

There is a plenty of free RAM  still available in Windows 8.1.


Does MT4 has upper limit of RAM usage where it becomes unstable or it is a bug of my indicators ?


Any application 32-bit can address 2GB on W32 or 4GB on W64. From my experience, the terminal crashes when hitting the 2GB even in the W64. It is including the swapped memory,

You cannot control the limit itself, all you can do is reducing the risk by setting the charts short and number of running ex4 low.

To add comments, please log in or register