Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory usage and NT8

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

    Memory usage and NT8

    I was wondering about memory creep and NT8. I am looking at task manager and I closed all my charts except for 1 and all my indicators, but the memory is still high. I restarted Ninjatrader and from 1500 mb it is down to 244 mb with the same parameters.

    Is it an indicator object issue in residual memory? If so in the indicators on terminate do I Remove all drawing objects?

    #2
    NinjaTrader is built on the .NET framework and relies upon that framework's ability to 'garbage collect'. Unfortunately, it's not very good at it. Restarting is the best way to free up memory.

    If you're experiencing some sort of 'memory leak' in which you're changing nothing but the memory usage continue to grow without stopping (and eventually uses all available memory) then there is another underlying issue we should be troubleshooting. This symptom is typically caused by custom add-ons.
    Patrick G.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PatrickG View Post
      NinjaTrader is built on the .NET framework and relies upon that framework's ability to 'garbage collect'. Unfortunately, it's not very good at it. Restarting is the best way to free up memory.

      If you're experiencing some sort of 'memory leak' in which you're changing nothing but the memory usage continue to grow without stopping (and eventually uses all available memory) then there is another underlying issue we should be troubleshooting. This symptom is typically caused by custom add-ons.
      Novice here: Wouldn't memory continue to rise based on the incoming tick information even if no indicators are in use?

      Comment


        #4
        Thanks for the advise.
        Would remove all objects in State.Terminate help in garbage removal?

        Comment


          #5
          Hello JMont1 and ballboy11,

          Thank you both for your posts.

          It is expected that your PC resource usage would increase with higher volatility, even with no indicators. The severity of this increase will depend on exactly how you're using NinjaTrader. There is no tool within the platform to specifically track how much RAM each internal process is taking, however, there is a way to track cumulative processing time spent on NinjaScript objects. This tool is called the NinjaScript Utilization Monitor.

          This tool is meant to help identify outliers from the rest of the platform in order to help troubleshoot performance issues.

          Here is some additional documentation on performance issues and tips:

          https://ninjatrader.com/support/help...tallingAdd-Ons

          https://ninjatrader.com/support/help...ance_tips2.htm

          There is no way to force NinjaTrader to 'garbage collect'. This is a Microsoft .NET limitation.

          Please let us know if we may be of further assistance to you.
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by szferi, Today, 02:04 AM
          0 responses
          1 view
          0 likes
          Last Post szferi
          by szferi
           
          Started by MidenThur, Today, 12:52 AM
          0 responses
          6 views
          0 likes
          Last Post MidenThur  
          Started by seseoraf, Today, 12:51 AM
          1 response
          6 views
          0 likes
          Last Post charmingishagarg  
          Started by Rosario, Today, 12:50 AM
          0 responses
          3 views
          0 likes
          Last Post Rosario
          by Rosario
           
          Started by kemoyums, Today, 12:38 AM
          0 responses
          3 views
          0 likes
          Last Post kemoyums  
          Working...
          X