Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

has anyone ever profiled memory usage at NT?

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

    has anyone ever profiled memory usage at NT?

    Today, 10/1, I noticed that NT has performed poorly throughout the session requiring several restarts as well as reboots.

    I am running a 32 GB / 8 vcore VM in Azure.

    Without running VS or anything heavy, I noticed that the memory would escalate and eventually consume 27-28 GB of memory. This is a massive amount of memory for a single app to consume.

    This is without strats, indicators, DOM, or anything else running. One single MNQ chart with 64/16 bricks and nothing else using the live connection.

    I ran dotMemory on the exe and noticed that the gen 2 heap was increasing at 100 MB per minute. This is crazy.

    I asked ChatGPT for a sanity check:

    "Unintended Object Retention: An increase of 100 MB per minute in the Gen 2 heap suggests that your application is increasingly holding onto long-lived objects. This can happen if objects are being created and not properly released or dereferenced, causing the GC to think they are still needed."

    This matches my understanding as well. As of now, the gen 2 heap is 16.3 GB.

    Has anyone every profiled memory usage for NT over at your place? Because it doesn't look good at all from my end. I can't even get a full memory capture in dotMemory to look at what's going on because it hangs.

    The findings suggest that there are serious leaking issues in this app.





    #2
    Hello sultanofsuede​,

    Thank you for reaching out.

    First, I recommend you review our Performance Tips, which outline all the best methods for reliable NinjaTrader performance on any computer.

    Be sure to install all available updates for your PC from the Windows Settings > Update & Security page. Manually check for updates here, and restart your PC after installing any.

    *If you are using some third party add-ons.

    Please note that we do not control how well they will perform and the more you ask NinjaTrader to load on your charts, the more it will put pressure on your PC which may result in freezing or laggy behavior. We cannot fix scripts imported from third parties.



    Some of the most common performance problems I have seen are related to having too many days loading on your charts; you can check the number of days to load with these steps:

    - Right-click on a chart and select Data Series.

    - In the "Time Frame" section reduce the number of days to load.

    - Click OK to save changes and test.



    Another item that can overload your system is the method of calculating the indicators on your charts. Follow these steps to review/adjust the settings:

    - Right-click on a chart and select Indicators.

    - For each "configured" indicator in the lower left list, check the "Calculation" property on the right. Unless an indicator requires "On every tick", try changing to "On price change" or "On bar close", as these calculations consume fewer resources than "On every tick".

    - Click OK to save the changes.


    A test you can use to check the rendering delay is to open a SuperDOM window and compare that price to your chart prices. If the graphics prices update with a delay compared to the SuperDOM price, this is a telltale sign of rendering lag and indicates that you may need to lighten your workspace in order to adjust. We understand that this behavior can be frustrating, and is typically related to market movement and occurs at times of high volatility.


    ( You can also check which scripts are using the most resources by using the "NinjaScript Utilization Monitor".

    Control Center > New > NinjaScript Output

    Right-click inside the NinjaScript Output window > Select 'NinjaScript Utilization Monitor...'.

    This window will begin to populate with NinjaScript items in order of processing time.

    Let this window populate for at least a few minutes. You will then be able to see which NinjaScript, if any, is running at the top of the list and decide if you want to try to delete it).




    You can also clear old historical and cache data by doing the following:

    - Shut down NinjaTrader 8

    - Go to your computer's 'Documents/NinjaTrader 8/db' folder

    - Delete the files inside the 'cache', 'day', 'minute', and 'tick' folders.

    - Important: Do not remove any other files inside the NinjaTrader 8 Documents folder.

    When you restart NinjaTrader 8, you may notice a slightly longer initial load time as all of your historical chart data is re-downloaded, but your overall performance should be better.

    Please let us know if we can be of further assistance or if you continue to experience this behavior.​
    Erick P.NinjaTrader Customer Service

    Comment


      #3
      This is why I explicitly state in the original post that there were no strategies running (NinjaScript) or indicators.

      This is without strats, indicators, DOM, or anything else running. One single MNQ chart with 64/16 bricks and nothing else using the live connection
      This was after rebooting the machine on two different occasions.

      For historical data, I NEVER load more than 1 day because the performance is so bad in NT.


      I do not use SuperDOM.

      The gen 2 usage is insane.

      "Update Windows with latest patches..."

      Okay. Whatever.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      69 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      42 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      24 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      27 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      54 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X