Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (dBc, clonman, TipmyPip, 1 invisible), 18,936 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
High memory usage on lower timeframes #485423
03/09/22 11:31
03/09/22 11:31
Joined: Jan 2022
Posts: 70
Budapest
N
NorbertSz Offline OP
Junior Member
NorbertSz  Offline OP
Junior Member
N

Joined: Jan 2022
Posts: 70
Budapest
Dear all,

I started to use multiple Zorro S instances (2.44). As you see on the attached picture this is my VPS's task manager, and my question is about the huge memory usage. The running script is exactly the same on all Zorro instances: they connect to a MT4 terminal (one MT4, one chart open with the Zorro EA.). They are in Trade mode.

The only difference between them is the timeframe: 1, 5, 15, 60, 240.
The highest memory usage is connected to the 1 minute timeframe instance, and the lowest to the 240 minutes.

I found this thread:
https://opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=478604
but I don't use the PRELOAD flag.

In the code:
Code
function run(){
	set(LOGFILE);
	//BarPeriod = 60; //selected with the UI
	LookBack = screenSize * 2 + 20;

(screenSize is a constant, set 200)

So it should only load 420 candles per timeframe, the 1.87 GB RAM on 1 minutes chart is insane.

Additional informations: this huge memory usage is this high at the first moment of the trading, and it's not increasing time-by-time. So i'm pretty sure it's not a memory leak in the code.

Could you help me how is it possible and how can I avoid this phenomenon?
Thank you!

Attached Files zorro_memory.png
Last edited by NorbertSz; 03/09/22 11:37.
Re: High memory usage on lower timeframes [Re: NorbertSz] #485426
03/09/22 11:42
03/09/22 11:42
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
https://zorro-project.com/manual/en/asset.htm

Under 'remarks' on this page is a formula to estimate memory requrement per asset. Obviously, it's far away from > 1 GB. So something else in your script is probably the culprit. You can use the memory() function for getting the real memory footprint at any bar.

Re: High memory usage on lower timeframes [Re: jcl] #485436
03/10/22 05:01
03/10/22 05:01
Joined: Feb 2022
Posts: 21
T
TrumpLost Offline
Newbie
TrumpLost  Offline
Newbie
T

Joined: Feb 2022
Posts: 21
Watching this thread. Hope you get an answer.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1