Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Memory Leak for Chart Data and Performance Analytics Data

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

    Memory Leak for Chart Data and Performance Analytics Data

    When I open a chart with a lot of data it uses up over 98% of my PC's 16GB RAM. When I close the chart, that memory allocation is NOT released. This causes NT8 and my entire PC to run slowly to the point where NT needs to be shut down. I had live strategies running at the time that caused me to unsafely close all positions. My questions/suggestions are:

    1. Does all chart data need to be held in RAM simultaneously? I'd imagine data can be downloaded into a local storage database (not RAM) and windows of data can be pulled from the database into RAM for display on the chart, back testing, etc. Regardless of architecture, memory should be freed upon closing the chart, no?

    2. Is there a way to "Clear cache" data for the platform? If not, I'd suggest implementing this feature to avoid having to close the application when memory usage is too high. Of course, sandbox any area of cached data that is deemed necessary (strategies, open charts, etc). This could be a quicker work around to revive the frozen interface in lieu of fixing any memory leaks.

    #2
    Hello jflaggs​,
    Thank you for your post.

    First, I highly recommend going through our Performance Tips, which outline all the best methods for reliable performance from NinjaTrader on any computer.

    Be sure to install all available updates for your PC from the Windows Settings > Update and Security page as well. Manually check for updates here, and reboot your PC after any are installed.
    If you are using any 3rd-party add-ons, please keep in mind that we do not control how well they will perform and that the more you ask of NinjaTrader to load on your charts, the more it pushes your PC which may result in freezing or lagging behavior.
    You may also clear old historical and cache data by doing the following:
    • Shut down NinjaTrader
    • Go to the 'Documents/NinjaTrader 8/db' folder on your computer
    • Remove the files within the 'cache', 'day', 'minute', and 'tick' folders
    • Important: Do not remove any other files within the NinjaTrader 8 Documents folder
    When you restart NinjaTrader, you may notice a slightly longer initial load time as all historical data on your charts is re-downloaded, but your overall performance should be better.​

    If you need further assistance, please email us your log and trace files right from the NinjaTrader platform (by going to Help-> Email Support), so we may investigate this matter further. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
    Thank you!​

    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
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    31 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