Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 7.0.0.17 crash with RAM building up

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

    #16
    Hello,

    This is managed by Garbage Collection automatically by .net. However so that I may test this how many strategies did you load when you say a bunch to see the results of the increased memory? Also what data feed provider are you using?

    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #17
      Here you go. I actually did seven screen grabs but the important two are below. Using the SampleMACrossover and a basket of 10 instruments, this is my memory usage according to Windows Resource Monitor:

      No_Connections: 93M. This when I open Ninja.
      Zen_IQ: 129M. This when I connect to Zen and IQFeed. No Strats loaded.
      Load_Disabled: 135M. Load but not enable 10 SMA Example strats.
      Load_Enable_T1: 143M. Enable all.
      Disable_Enable_T2: 149M. Disable, then re enable all.
      Disable_Enable_T3: 155M. Disable, then re enable all.
      Disable_Enable_T4: 161M. Disable, then re enable all.

      My concern is the with small footprint strats such a the SampleMACrossover, yes memory use increases with a enable/disable cycle but to a small degree. Production strats have a larger footprint so the enable/disable cycle is much more prone to an OutOfMemory excepetion if multiple instruments are traded.

      It is something I can work around in production using multiple accounts and multiple instances of Ninja and daily restarts, but I did want to bring it to your attention.
      Attached Files

      Comment


        #18
        Hello,

        Looking into this now.

        Thank you for your patience.
        BrettNinjaTrader Product Management

        Comment


          #19
          Hello,

          I Have heard back from development. This is expected as NinjaTrader does not decide when to release the memory. .Net manages this for NinjaTrader and does whats called Garbage Collection. When it decides it is time to do this it will then clear the memory. NinjaTrader has no input on when this is done as it is done automatically.

          Let me know if I can be of further assistance.
          BrettNinjaTrader Product Management

          Comment


            #20
            Thanks Brett. I'll have a play with some of the C# Garbage Collection tools.



            If I come across anything that might help the community I'll post it back here.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            596 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            343 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            103 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            556 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            554 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X