Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ninjatrader memory handling and optimization

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

    ninjatrader memory handling and optimization

    am running ninjatrader 6.0 and am noticing a few interesting memory management issues, mostly related to running optimizations:

    1) when running multi input variable optimizations (like 5 or 6) with input ranges for every variable, i am prone to getting outofmemory type crash errors. i find that by increasing the intervals (decreasing total # of scenarios) tends to resolve this, but of course makes my optimizations perhaps less accurate to past results.

    2) When doing the above, i also notice ninjatrader tends to get to process memory size in task manager of 300mb-400mb. Then after I close the strategy analyzer (i assume this is the source of the consumption), that application memory size stays the same. Sometimes I'm best off closing and re-opening the application. Often when things get unreliable as well, quitting the application doesn't end the process, and I must force kill it, and then restart.

    3) i am running vista ultimate w/ 2 gb of memory, just FYI.

    any ideas?

    #2
    1) NT should not report OutOfMemory if task manager states that there still is memory. I suggest isolating the issue. of course you always can drive it to a point where there is no more memory available (just by loading too much data).
    2) Since .NET is a garbage collection system you would not see as NT frees memory.

    Comment


      #3
      Originally posted by NinjaTrader_Dierk View Post
      1) NT should not report OutOfMemory if task manager states that there still is memory. I suggest isolating the issue. of course you always can drive it to a point where there is no more memory available (just by loading too much data).
      2) Since .NET is a garbage collection system you would not see as NT frees memory.

      Here's one that just happened when I was running strategy analyzer. Multi variable optimize triggered it, but the array was no where near as large as ones I had previously run. Rebooting the application fixed it.

      The Ninjatrader app was about 630MB in memory when this happened. Attached is task mgr and the crash text. Actually occurred in the newest 6.0 v2 release. And yes, the report came from .NET framework. If you hit continue, the application doesn't actually 'crash' - just a failure of the requested function occurs.
      Attached Files

      Comment


        #4
        Thanks for feedback. We're looking into it.

        Could you please PM me (dierk AT ninjatrader DOT com):
        - your actual strategy
        - screenshot of the strategy, optimization settings

        Thanks

        Comment


          #5
          There was a bug related to .NET garbage collection. We provided a fix and a custom build. Please:
          - uninstall NT6 via control panel
          - clear your browser cache
          - install custom build from here: https://www.ninjatrader-support.com/...er.Install.msi

          Please let us know how it goes.

          Thanks for your support on that matter.

          Comment


            #6
            Originally posted by NinjaTrader_Dierk View Post
            There was a bug related to .NET garbage collection. We provided a fix and a custom build. Please:
            - uninstall NT6 via control panel
            - clear your browser cache
            - install custom build from here: www.ninjatrader-support.com/ninjatrader/nt6.custom/NinjaTrader.Install.msi

            Please let us know how it goes.

            Thanks for your support on that matter.

            Done. Now when I attempt to run the optimizer it immediately finishes and no results come out. I've noticed this happen in the past occasionally. No errors either. Also restarted the NT application twice to attempt redo, and same thing happens. When I had this trouble in the past, restart would fix it. Perhaps I should make sure I'm running the latest .NET framework updates? Backtest with fixed variables DOES work, just not the optimizer. I looked at the output window and it looks like the optimizer doesn't even get to the stage of invoking the backtester.

            Comment


              #7
              You need to have .NET 2.0 runtime installed to tun NT.

              Do you have a reproducible scenario? I tried the setup you sent me but it would takes hours to complete. Do you have something which completes within a few minutes?

              If so, then please:
              - send me again screenshot or settings
              - send me your zipped DB

              Thanks

              Comment


                #8
                Originally posted by NinjaTrader_Dierk View Post
                You need to have .NET 2.0 runtime installed to tun NT.

                Do you have a reproducible scenario? I tried the setup you sent me but it would takes hours to complete. Do you have something which completes within a few minutes?

                If so, then please:
                - send me again screenshot or settings
                - send me your zipped DB

                Thanks

                Now its working fine... I did attempt to 'reinstall' .NET 3.0 from the Microsoft website, and rebooted. Maybe redoing .NET and/or the reboot took care of the issues entirely.

                I'll keep my eye on it.
                Thanks.

                Comment


                  #9
                  You need to have .NET 2.0 runtime installed to tun NT. .NET 3.0 is not sufficient.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Dierk View Post
                    You need to have .NET 2.0 runtime installed to tun NT. .NET 3.0 is not sufficient.
                    well it seemed i already had that of course; otherwise the application wouldn't have run. I guess .net 3.0 is an extra package?

                    didn't seem like 3.0 was a very sizeable download.

                    Comment


                      #11
                      .NET 3.0 is the next .NET generation. You can have multiple .NET generations installed on the same machine the same time.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by traderqz, Today, 12:06 AM
                      2 responses
                      3 views
                      0 likes
                      Last Post traderqz  
                      Started by RideMe, 04-07-2024, 04:54 PM
                      5 responses
                      28 views
                      0 likes
                      Last Post NinjaTrader_BrandonH  
                      Started by f.saeidi, Today, 08:13 AM
                      1 response
                      7 views
                      0 likes
                      Last Post NinjaTrader_ChelseaB  
                      Started by DavidHP, Today, 07:56 AM
                      1 response
                      6 views
                      0 likes
                      Last Post NinjaTrader_Erick  
                      Started by kujista, Today, 06:23 AM
                      3 responses
                      11 views
                      0 likes
                      Last Post kujista
                      by kujista
                       
                      Working...
                      X