Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Consistent issue running out of Memory when running Optimization

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Consistent issue running out of Memory when running Optimization

    I am running a Optimization with 125 Iterations and I am running out of Memory. I have 24 GB or RAM and after a
    fresh reboot all is good. After running an Optimization the memory it has used is not released. So if I change a parameter
    and run again the memory continues to get used until by the third time the OS is absolutely useless and NT is unresponsive.

    How do I get this momory back without restarting NT8? I would provide the version of the application but it is completely unresponsive.
    NT8 reports using 20.8 GB of the 24 GB. I ended up killing the process and the version is: Version 8.1.2.0.

    Are there any settings available that will free the memory after running an Optimization? Updating to the latest Version is a complete PIA
    as I have to readd my credentials as it wipes this information on Upgrade. Why?

    #2
    Hello ATMtrader0001,

    Memory is cleared by the C# framework, there is nothing you can do to manually clear that besides restarting the application.

    To better understand the problem we would need more specific details about what you are using in code that is using so much memory. Are you using a lot of drawing objects? That is the only item that I know of that would take a lot of memory in a small optimization. If you are drawing thousands of objects that could start to take a lot of memory very fast. If that is the case you can disable your drawing objects in code to prevent that from happening.

    Comment


      #3
      Jesse,

      I am not drawing any objects. I am using one Indicator in my Strategy and calculating a few other data points, but I do not have any Draw, Plots or Lines
      in the code and I have commented out any debug code as well.

      Comment


        #4
        Hello ATMtrader0001,

        Please try testing the SampleMACrossOver strategy to see if you hit the same issue. If you do not that means something being done in your code would be the reason for the high usage. If that is the case you would have to try and comment out parts of your logic to see what part is contributing to the memory use. If you do have high usage with the sampleMACrossOver please provide the specific steps that you used and settings used to test so we can better understand the use case.

        Comment


          #5
          Originally posted by ATMtrader0001 View Post
          I am running a Optimization with 125 Iterations and I am running out of Memory. I have 24 GB or RAM and after a
          fresh reboot all is good. After running an Optimization the memory it has used is not released. So if I change a parameter
          and run again the memory continues to get used until by the third time the OS is absolutely useless and NT is unresponsive.

          How do I get this momory back without restarting NT8? I would provide the version of the application but it is completely unresponsive.
          NT8 reports using 20.8 GB of the 24 GB. I ended up killing the process and the version is: Version 8.1.2.0.

          Are there any settings available that will free the memory after running an Optimization? Updating to the latest Version is a complete PIA
          as I have to readd my credentials as it wipes this information on Upgrade. Why?
          We all have the same issue.
          Always have.
          There's a number of other threads on it. NT eventually come to the conclusion that it's related to Windows Garbage collector or something.

          You can get more RAM, to keep you in the apllication for longer.
          I have 64GB. I can fill it all quite easily, but usually it will sustain one large optimisation cycle.

          ​​​​

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          81 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          46 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          29 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          32 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          66 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X