Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory bloat just from opening NT7

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

    Memory bloat just from opening NT7

    I'm getting memory bloat of nearly 1 GB just from opening NT7. Here's a pic from task manager. Also, I've sent my log and trace files to support. Please advise on how to stop this.

    Every time I try to run a live strategy the memory blows up to >1 GB and NT shows up as "not responding". Now, even after shutting down NT7 and my PC and restarting the memory has remained bloated - and this has been for several hours.

    Thx,
    Lou
    Attached Files

    #2
    Hello bluelou,

    Thank you for your post.

    Please re-send your Log & Trace files and include this thread/link in your email.

    Once we have an opportunity to review them & see what might be taking place here, we will be able to respond.

    Thank you,
    ChipNinjaTrader Customer Service

    Comment


      #3
      Chip,
      I tried resending the log & trace files but NT just hung there for 30+ min. I couldn't even use my browser. Any other ideas?

      Comment


        #4
        In this case, just isolate the individual Log & Trace files for the last day you experienced this issue.

        You can find these in your (My) Documents folder in the sub-folders: (see screenshots)

        1. NinjaTrader 7 > Trace > trace.2010MMDD.txt

        2. NinjaTrader 7 > Log > log.2010MMDD.txt


        Just attach these two text files to you email & send it to support AT ninjatrader DOT com


        Once we receive them we will evaluate & try to understand what is going on.
        ChipNinjaTrader Customer Service

        Comment


          #5
          Chip,
          Yesterday's log file was 342 MB and the trace file was 6 MB. How do I send this to you? Even YouSendIt.com won't allow me to send a file of this size w/o paying them $10. Do you know of another way to get this file to you?

          Comment


            #6
            Hi bluelou,

            Please compress the files in to a .zip or .rar and then upload using the free web service http://senduit.com/
            KyleNinjaTrader Customer Service

            Comment


              #7
              Kyle, I just sent the trace files since that was only 6MB.

              senduit has a 100MB limit so that won't work for a 342 MB log. A few other services max out at 300MB free. I just looked at the log and I don't think it will be of that much help. It has over 1/2 milllion lines of print statements from my backtests but that's probably it.

              I'll see if I can split the file in notepad++ or something like that.

              Comment


                #8
                BTW, I've been using MSVS 2005 to debug a live strategy in NT7. During the entire process, even after terminating the MSVS debug process, NT7 shows "not responding". That means the only way for me to end the debug process in NT7 is to terminate the program in Task Manager. Is there a cleaner way to terminate debugging in NT7?

                Also, I tried sending a zip version of the log file using senduit. I think I might have crashed their site during the upload b/c now the site is reporting technical difficulties.

                Comment


                  #9
                  Hello bluelou,

                  The size of your log file indicates there is some issue with your custom items. This is a text file meant to display debug information related to orders. If it has grown over 300 MB, then there is a lot of unnecessary logging and may explain why you're having memory issues with NinjaTrader.

                  Your trace file shows this line, repeated for many pages and may help you isolate what's happening here.

                  2010-08-02 14:37:32:954 ERROR: OBU Test
                  Ryan M.NinjaTrader Customer Service

                  Comment


                    #10
                    Ryan,
                    I use the log as a place to monitor the output of my custom indicators. The log info you're seeing is mostly from StrategyAnalyzer output. The exception to this is where you see OBUTest - (OnBarUpdate test) - which is a test for live trading.

                    Are you saying that using the log to monitor strategy output will cause NT memory to bloat? If my indicator output should not go in the log then where do you recommend I print it to?

                    Comment


                      #11
                      Hi BlueLou,

                      300 MB of text output per day is not typical and may cause issues loading. Using the log tab for monitoring output is fine, but something in your code or simply a large amount of tests is generating way more output than is probably useful.

                      If you have the need to output this much data related to your strategy analyzer tests, a better approach may be to export to an external file.

                      You can use the principles here:


                      If the output is generated by standard tests and you have no control over where it goes, then you may need to manually monitor this file. If it gets too large transfer the contents outside of NinjaTrader's internal files.
                      Ryan M.NinjaTrader Customer Service

                      Comment


                        #12
                        Ryan,
                        When you say a large log file "may" cause issues loading are you guessing that this is a problem or is this a known issue? If so, I wasn't aware that the size of the log file could affect performance.

                        Thx,
                        Lou
                        Last edited by bluelou; 08-04-2010, 08:26 AM.

                        Comment


                          #13
                          Hi Blue,

                          It's your tests that are generating such large output.

                          NinjaTrader reads and writes to this log file all the time. This isn't a known NinjaTrader issue - it's a tennant of computing that larger files loaded into memory will impact performance.

                          You're using an essentially open programming language that allows you to create tests that can potentially tax your system to the the extreme. Let us know if you feel one of your scripts is generating this output abnormally or if it's just related to the number or type of tests you're running.
                          Ryan M.NinjaTrader Customer Service

                          Comment


                            #14
                            Ryan,
                            I think you've misunderstood my last comment. So, you're saying that each day's log file is held in memory for that day? For example, if I run 50 simulations and that generates 100 MB of log files (due to print statements I've put in my code) and then let's say I shut down NinjaTrader and then reopen it later the same day - are you telling me that when I reopen NT that it will also load the 100MB of log files into memory?

                            Comment


                              #15
                              Correct. It is not recommended you flood the log file with NinjaScript messages that are not critical. The log tab for NinjaTrader should be reserved for critical error reporting and things like that. If you are just trying to have some output, I suggest you output it to your own txt file instead of the NT logs. Please see here: http://www.ninjatrader.com/support/f...ead.php?t=3475

                              If you don't need these outputs for storing purposes you can even just use the Output Window and completely bypass saving these messages altogether.
                              Josh P.NinjaTrader Customer Service

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              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
                              4 views
                              0 likes
                              Last Post NinjaTrader_ChelseaB  
                              Started by DavidHP, Today, 07:56 AM
                              1 response
                              5 views
                              0 likes
                              Last Post NinjaTrader_Erick  
                              Started by kujista, Today, 06:23 AM
                              3 responses
                              9 views
                              0 likes
                              Last Post kujista
                              by kujista
                               
                              Started by Mindset, Yesterday, 02:04 AM
                              2 responses
                              18 views
                              0 likes
                              Last Post NinjaTrader_RyanS  
                              Working...
                              X