• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

memory leak and cache data

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

    memory leak and cache data

    Has anyone had a problem with the error Cant read or write cache data? I also get a memory leak with NT8 the amount of memory NT8 consumes gradually goes up till NT8 freezes at around 2000mbs?

    I dont get the error message everytime time but mostly when trade is busy and on start up.

    The memory leak after a few hours.

    I have tried deleting directories in the DB folder and turning off antivirus ?

    #2
    Re: memory leak and cache data

    Hello,

    Thanks for writing in to our Support team.

    To resolve your error with cache data, please delete your cache.

    To delete the cache, follow the steps below.
    • Shut down NinjaTrader.
    • Open the Documents > NinjaTrader 7 > db folder.
    • Delete the sub-folder named 'cache'.
    • Restart NinjaTrader and test.

    Regarding your memory leak:

    So we can further diagnose your system, please start NinjaTrader in Safe Mode.

    Safe Mode will prevent NinjaTrader from:
    • Loading workspaces.
    • Connecting on start-up.
    • Loading custom assemblies.
    • Getting instrument updates from the server.

    To enable safe mode, please use the following steps:
    • Exit NinjaTrader.
    • Hold the CONTROL key and double click the NinjaTrader icon.
    • Keep the CONTROL key held down until you see the Control Center.
    • You can verify you are in safe mode by going to Help -> About.

    Please let us know if you are still receiving the error or experiencing the memory leak after starting NinjaTrader in Safe Mode.

    I look forward to your reply.
    Alan S.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply

      I have tried both methods and can say while in safe mode there is no problem.

      when I start up again the problem disappears but returns after a while when I start up mostly and sometimes when selecting different charts.

      the memory leak has no error just NT8 slows down to a crawl and eventually freezes. restart will reset the problem.

      I am getting an error now
      Indicator "" error on calling 'on bar update' method on bar 4456 and 257?

      Comment


        #4
        Hello,

        Thanks for your reply.

        So I can diagnose your issue further, please send us your log and trace from the NinjaTrader Platform.
        To do this, navigate to your Control Center --> select Help --> Email Support.
        Ensure that you have Log and Trace files checked and put Attn Alan S in the subject field.

        I look forward to assisting you.
        Alan S.NinjaTrader Customer Service

        Comment


          #5
          I have sent them off

          Thanks

          Comment


            #6
            NT8 memory leak resolution?

            Did you ever get this memory leak resolved? I have the same issue from time to time.

            My setup has been flawless for weeks, but today, NT8 decided to do the "memory-leaking-thingy." Unable to trade with NT8 lagging so much.

            Curious what the outcome was with Tech Support.

            Scotty

            Comment


              #7
              It looks like in this users case that the issue was with custom add-ons and/or a corrupt workspace (ticket #1630818 for my reference).

              This particular issue was also reported about a year and half ago on version 8.0.2.0.

              I suspect whatever you're experiencing will need to be analyzed at an individual level. We will be able to assist you more accurately via email.

              Please write into PlatformSupport[AT]NinjaTrader[DOT]com with a brief description of what you're experiencing.
              Patrick G.NinjaTrader Customer Service

              Comment


                #8
                I figure I'll post a reply here, as well as copy this in a newer topic, for those who are subscribed to this post.

                There sure is a memory dump issue with NT8, when running large strategies or optimization. I went from 32 GB to 64 GB ram, and it doesn't matter - it will fill to 100% and slow computer to a crawl - or crash if you try to be "fast" - HOWEVER, it takes longer to get to that point (so that indicated to me that there's a "build up"). At 16 GB NT8 used to crash pretty fast.

                What I did was to sync my NT8 folder, and AFTER I closed NT8, I noticed hundreds of files created in my synced google drive folder. Upon closure, NT8 deletes all those files; and so it seems like it just keeps creating and opening more and more files forever in the background, without closing them.

                My theory is that WHILE NT8 is running all those files (let's say a strategy for 500+ stocks) continually update minute data, but rather than adding data to the old file, it also keeps the previous file open, and uses a new file to collect information. It's a single stock, it should have ONE file that updates, and instead, it creates a new file for every data point it seems - and they must be all being accessed. These files are created in this folder:

                DRIVE:\Documents\NinjaTrader 8\db\cache\US Equities RTH.Eastern Standard Time\MINUTE

                Open any ticker, and you will see the insanity that ensues, as the program runs longer, until seemingly every file is open as more are being created and left open.

                Adding some screenshots to make it easier to see, especially the side by side of the synced folder, versus NT8 folder once it is closed.

                Attached Files

                Comment


                  #9
                  Hello lmatiukas,

                  May I confirm that the script is not making new objects in any methods and is taking advantage of IsInstantiatedOnEachOptimizationIteration being set to false?
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by rickyblah12, Today, 08:17 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post rickyblah12  
                  Started by mrlucky1x, Today, 08:07 PM
                  0 responses
                  2 views
                  0 likes
                  Last Post mrlucky1x  
                  Started by uday12, Today, 07:21 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post uday12
                  by uday12
                   
                  Started by voltlon, Today, 05:18 PM
                  0 responses
                  6 views
                  0 likes
                  Last Post voltlon
                  by voltlon
                   
                  Started by Bobisam, Today, 04:57 PM
                  0 responses
                  8 views
                  0 likes
                  Last Post Bobisam
                  by Bobisam
                   
                  Working...
                  X