NexusFi: Find Your Edge


Home Menu

 





Ninjatrader 8 Memory Leak


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one Fiddich with 4 posts (4 thanks)
    2. looks_two Miesto with 1 posts (4 thanks)
    3. looks_3 trendisyourfriend with 1 posts (1 thanks)
    4. looks_4 bobwest with 1 posts (2 thanks)
      Best Posters
    1. looks_one Miesto with 4 thanks per post
    2. looks_two bobwest with 2 thanks per post
    3. looks_3 Fiddich with 1 thanks per post
    4. looks_4 trendisyourfriend with 1 thanks per post
    1. trending_up 1,720 views
    2. thumb_up 11 thanks given
    3. group 3 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread

Ninjatrader 8 Memory Leak

  #1 (permalink)
Fiddich
CO at the moment
 
Posts: 8 since Sep 2016
Thanks Given: 3
Thanks Received: 5

The past few weeks I've been having memory/RAM issues with NT8.

My memory use will start off fine but then slowly creep up. Seems to start once markets are open. Sometimes, the memory will garbage collect/dump back to normal levels but then start the climb again. Other times, it never stops and crashes the computer it's running on.

The strangest thing of all is that if the RAM usage is increasing and I start interacting with the platform - meaning click on chart tabs, click on control panel tabs, scroll through orders tab, etc. - the RAM usage will dump back to the normal level, as if it was sleeping or needed a reminder to operate properly. If I don't click on anything and just watch the RAM usage, it will keep increasing until I click things. The crashes have all come overnight when I'm not interacting with the platform.

I've tried it on multiple computers/servers with 32GB of RAM and it happens on all. Different versions of Windows also.

I run a lot of automated strategies but the thing is, I've had no issues with them for years and now all of a sudden I'm getting this issue on all computers I try to run them on.

Anyone have any similar issues or know of any solutions to this? Appreciate any and all help.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quant vue
Trading Reviews and Vendors
How to apply profiles
Traders Hideout
ZombieSqueeze
Platforms and Indicators
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,527 since Oct 2009
Thanks Given: 4,176
Thanks Received: 6,020

What indicators are you using? and from which source?

Reply With Quote
Thanked by:
  #3 (permalink)
Fiddich
CO at the moment
 
Posts: 8 since Sep 2016
Thanks Given: 3
Thanks Received: 5


Only NT standard indicators (ATR, RSI, SMA) and usually only have 1 on a chart at a time.

Reply With Quote
  #4 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,172 since Jan 2013
Thanks Given: 57,501
Thanks Received: 26,292

Do you have these issues when NT is not running your strategies?

You'll need to test a totally clean NT install and then, if there are no issues, add in things one at a time until the problem happens. That will tell you where it is.

If a clean, no-indicator, no-strategy NT install has it, then contact NT support because it's their issue then. Otherwise, look at whatever you have running until you find it.

The fact that you never had this issue before, using your strategies, does make it look like NT made some recent change (possibly to something that your strategies use or depend on), but the way to locate it is still to go one at a time, adding in things until you locate where it happens. Then you can zero in on what is going on between that code and NT.

Good luck. This kind of thing can drive you crazy, even if you use a one-at-a-time, systematic approach, but this will find it.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
Thanked by:
  #5 (permalink)
Fiddich
CO at the moment
 
Posts: 8 since Sep 2016
Thanks Given: 3
Thanks Received: 5

I don't have issues with NT when not running the strategies. I also don't have issues if the strategies are connected to Sim101. The memory leak only occurs when connected to my live account, which seems a little strange.

I agree that it's likely something they changed in the background that my strategies rely on since it just started happening. I'll try and figure out how to apply the one-at-a-time approach without too much downtime hopefully. Appreciate the suggestion, Bob.

Reply With Quote
Thanked by:
  #6 (permalink)
 Miesto 
Monte Carlo, Monaco
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader 8
Broker: NinjaTrader Brokerage
Trading: Futures
Posts: 647 since May 2012
Thanks Given: 801
Thanks Received: 1,193

I think the way to go is like Bob wrote.

You could go back to a recent working NT version (maybe the problem is solved in a later version).

Maybe the "NinjaScript Utilization Monitor" will tell more?

See https://ninjatrader.com/support/helpGuides/nt8/?output.htm under "NinjaScript Utilization Monitor".

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #7 (permalink)
Fiddich
CO at the moment
 
Posts: 8 since Sep 2016
Thanks Given: 3
Thanks Received: 5

Agreed.

Tried the previous version of NT - same issues unfortunately.

Nothing from the Utilization Monitor. BarType Daily and BarType OHLC were the highest and below that were all the strategies. Nothing seemed too high in terms of CPU utilization.

I tried to get help from NT but received no real help. Even though I provided direct contradictions to what they claimed "should" be the case, they just said "custom strategy needs to be reduced"... So I guess it's time to go into troubleshooting mode on my own.

Thanks for the response.

Reply With Quote
Thanked by:
  #8 (permalink)
 hedgeplay 
Austin Texas / US
 
Experience: Intermediate
Frequency: Several times daily
Duration: Seconds
Posts: 176 since Dec 2019
Thanks Given: 145
Thanks Received: 211


Fiddich View Post

I run a lot of automated strategies but the thing is, I've had no issues with them for years and now all of a sudden I'm getting this issue on all computers I try to run them on.


Hi Fiddich,

It was this part of your above that left me with any good ideas from a distance.

Two quick thoughts.

1) The classic troubleshooting response to " ..no issues for years and all of the sudden .." is:
So what in the ecosystem/overall environment changed?
2) I would post a question and also search on the NT support forum as well. I see them respond to general questions like this.
https://forum.ninjatrader.com/forum
HedgePlay

Reply With Quote




Last Updated on July 8, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts