What to do when MT4 is using a lot of memory?
Results 1 to 6 of 36

Thread: What to do when MT4 is using a lot of memory?

  1. #1
    Hello,

    My VPS is revealing 75% memory with and seem to have been climbing.

    I am running 5 instances of MT4 with 8 charts each (40 charts total)

    what's taking up most of the memory?

    Can adjusting pubs in chart and pubs ever to 5000 reduce memory usage?

    Or what else can I really do about it?

  2. #2
    Thank You for the input!

    I shall give that a try.

    I'm using M30 and only need the latest number of days chart data for my EA to work with.

    But of course... the longer I leave all my MT4 online in my VPS, the longer the memory usage adds up over the days when I use defaults settings.

    Only want to make sure I don't wish to start getting accumulative diminished performance as this happens.

  3. #3
    I have had this happen to me personally - and shortly following the motherboard burnt out (don't know if this was associated or a coincidence) - you might have a corrupt file and will need to do a re-install. I'd suggest seeing the TM as you start each Metatrader and see if you can determine the culprit.

  4. #4
    Just wondering, I don't have any habit indiors,

    I would love to maintain my max pubs for chart and background exactly the same as it is now and also the number of charts (20) the same, over fifty percent of these are for analysis...

    What would speed up MT4 more?

    Increasing my 8GB DDR3 RAM; or upgrading CPU i7 3.4GHz and mobo?

    Any ideas?

    Thanks
    lnl

  5. #5
    Thank you a lot for your fast fix! I'd forgotten that I'd changed that setting while performing some backtesting per month ago. I moved over a Gig of ram utilized down to only twenty megs!

    Only a thought for all those of you who want to backtest often but also dont want to get all that memory taken up all the time. Just install MT4 again but choose a different directory. My MT4 installation was in app files in the Metatrader 4 folder. Just run the installer again and if it asks you to choose the directory just add something to the finish like a -1) so that it looks like this Metatrader 4-1. This way you may have two icons on your desktop, one with MT4 running with the default amount of candles and you for backtesting with all the candle amount improved. Now you only have to use all that ram when you are backtesting and can only close out that MT4 when you are not using it.

    Will the tendency be with you...

  6. #6
    I have a script which uses M1 information for many 23 major pairs my broker provides. The memory hit with this script is about 1 GB when my Max Bars in chart setting is 500000 (It loads 500000 M1 recordings x 23 pairs to memory).

    Once I reduce to Max Bars in chart setting to 5000, the memory strike is about 25 MB (It loads 5000 M1 recordings x 23 pairs to memory).

    That is an extreme case, but, yes, reducing the Max Bars in chart value may have a dramatic effect on memory usage in MT4.

    Despite no indiors and no scripts/EAs running, reducing the Max Bars in chart value does really make a difference.

    Based on the egy, you might or might not require the Max Bars in chart setting to be put at a really large price. The best option is to determine how much historic data you need to your egy and set the value so, particularly in the event that you use the reduced TF data (such as M1).

    Quote Originally Posted by ;
    Hello,

    My VPS is showing 75% memory using and appear to have been climbing.

    I'm running 5 instances of MT4 with 8 charts each (40 charts total)

    what's taking up most of the memory?

    Would adjusting bars in chart and bars in history to 5000 reduce memory usage?

    Or what else can I do about it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.