Jump to content
Medved Trader Forums

Memory Utilization on Latest Beta


Doug Hayman

Recommended Posts

I always have a lot of stuff running on my 16GB (memory), i7-4core-3.6Ghz computer, but today I noticed that I had extremely high MT memory utilization (3.1 GB).  Only 20 tickers in my Portfolio, 2 intraday charts, 1 historical, 1 news, 1 ToS, 1 DOM, and several Account view screen.

I noticed that refresh on my Intradays was really slow when switching between ticker symbols.   That's when I checked and noticed the very high Memory Utilization.   Never had any MT application lag like this before.

I restarted MT, and was back down to about 1.2GB of memory usage on the same MT screen.   Still noticing the lag though when switching between symbols.  And memory utilization climbing when I switch between tickers.

The big change I've made since first noticing this problem, is the addition of the 2nd Intraday chart.  Got rid of this 2nd Intraday though, and lag still exists when switching between tickers, and Memory utilization continues to grow.

If I stay on the same ticker symbol for awhile, memory footprint decreases eventually to below 1GB.

CPU Utilization is always fine.  I sent you logs.

Edited by Doug Hayman
Link to comment
Share on other sites

Yeah, I use 120 days of intraday for backtesting purposes, whenever I backtest (today, for example), so I don't want to prune that.  I've been playing with Tick data, but I can lower that value.

Still, I don't recall the sluggishness in Intraday charts, when switching ticker symbols.  Specifically, the 2nd Intraday chart that I just added, seems to lag the rest (maybe it's updated last, so has that effect).   Lag hardly noticeable much when switching between stock symbols in my portfolio; much more noticeable when switching between future symbols @MESU21 and @MNQU21, and screen refresh delay is most prominent on my 2nd Intraday chart.

EDIT:  Will deleting symbol from portfolio, and then re-adding, effectively prune the data for that ticker symbol?

Edited by Doug Hayman
Link to comment
Share on other sites

I lowered my tick data to lowest value (1), and that has not made a difference.

Is there any suggestion that you might have that would allow me to "archive" intraday data for above symbols periodically (for later back testing retrieval), so that I could then lower the # of intraday days for charts?

I'm consistently using 3.5GB - 4.0GB+ of memory  when I switch between symbols (which currently have about 90 days of intraday data currently).  If I stick with a specific ticker symbol for a period of time (that is, no switching between symbols), the memory footprint goes down after awhile (I'm guessing due to garbage collection).

Thanks in advance.

 

Link to comment
Share on other sites

I need to get the log file and data to check. Please do the following:

 go to FILE / Export/Backup menu (from Dashboard or Portfolio)
Select “To share with others” export file protection option on top right
Leave the checkboxes already checked, and also check LOG FILE and QUOTE DATA boxes.
Export (note the location of the file – it is shown in center of the right side of that screen)

The file will be too large to email. Please send it to us using https://wetransfer.com/

Or one of the other cloud storage sites (dropbox, google drive, etc)

 

Link to comment
Share on other sites

you are using Renko charts with settings that result in huge # of bars when used with some symbols. If you specify the Box Size in % instead of absolute values, it may work better with various symbols. 

If you change the two Renko charts to 0.25% or 0.5% box size, you will see that everything switches better and probably uses less memory. Can then adjust from there.

Link to comment
Share on other sites

Further to last post, I'm looking to make this more efficient, without losing functionality.  Is there a way for me to continue to collect 120 days of data as I'm currently doing, but to force charts to only display last day or 2 only for example, so that MT doesn't have to buffer data for the full 120 days?   I guess I'm asking for a smart display filter where MT wouldn't have have to buffer all this data, but all the data is still there.

Link to comment
Share on other sites

Yeah, I get it.   Maybe I'll just save SDATA.BIN to SDATA.BIN_BACKTEST once I hit close to 120 days of saved futures data, then subsequently reduce the # of saved days in Chart Config, save that current state of SDATA.BIN_CURRENT, and restore old SDATA.BIN_BACKTEST only when I do backtesting.   I could then restore current SDATA.BIN_CURRENT to SDATA.BIN when I go back to normal trading, and backfill to bring it up to date for # of days specified in Config.  I realize that I'll need to shut MT down, when doing these SDATA.BIN copying.

See any snags with that, other than mucking with SDATA.BIN?

Alternatively, would it be difficult or feasible to introduce a Settings switch that says to only buffer current day data for charts, even if there is more data for a ticker?

Thanks again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...