Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Analyzer consuming memory?

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

    #16
    Barely 4GB on AMD 2 proc in a VPS running Windows Server 2022. I'm switching to an Intel i9 with 64GB RAM this week though.

    Comment


      #17
      It does regularly consume basically all of the RAM because of the way GC works. So, it might consume all of the 64GB as well, but it will take longer.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #18
        Yes, with the new PC, the consumption continues, but since I have more RAM, I can cycle through more optimizations before having to kill NT to release the memory.

        Something in my code is causing this, I am using standard NT code, no add-ons. This is a scratch build.

        How can I track this down? Is there a profiler in VS I can use to see which process/class is using up memory?

        Comment


          #19
          Yes, there are some tools built into VS and of course there are a boatload of aftermarket products.

          Learn about the tools you can use to find memory leaks and inefficient memory usage, tools such as the Memory Usage tool and the .NET Object Allocation tool.
          Bruce DeVault
          QuantKey Trading Vendor Services
          NinjaTrader Ecosystem Vendor - QuantKey

          Comment


            #20
            NT doesn't have a prescribed / example of profiling NT scripts?

            Comment


              #21
              Hello Skechers,

              Thanks for your note.

              We do not have an example of this specifically.

              To locate what in your script is causing the behavior you could reduce the script to see what section/line of code might be causing the behavior.

              For example, comment out sections of code in your script and test to see if the behavior persists. If at any time you comment out a section of code and the behavior stops, it is likely that section of code causing the behavior.

              Or, you could use Visual Studio tools as QuantKey_Bruce mentioned but using those tools goes beyond the support we are able to provide you with in the Support department.
              <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

              Comment


                #22
                Many Thanks Brandon & Bruce.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                72 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                44 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                25 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                30 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                61 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X