NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 09-24-2008, 06:20 PM   #1
billitin
Senior Member
 
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 0 times in 0 posts
Question RAM start-up consumption

Hi, there's a glitch I've encountered with memory consumption by NT. It was ok until I ran an extensive backtest that took up 1.5Gb of RAM, after which shut NT down without saving the workspace and restarted my computer. Then on next startup NT ate up 1Gb of RAM and took 2 minutes of time just to get started. Re-installing latest version of NT didn't help... What I should do at this point? I'm running WinXP SP2, .NET 2.0 SP1. Thank you!
Last edited by billitin; 09-24-2008 at 06:41 PM.
billitin is offline  
Reply With Quote
Old 09-24-2008, 10:18 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

There will be optimizations in performance in NT7. In the meantime you can see this list of performance tips: http://www.ninjatrader-support.com/H...anceTips1.html
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-25-2008, 12:15 AM   #3
billitin
Senior Member
 
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 0 times in 0 posts
Default

It looks like the only tip that might be relevant is 'uncheck "Run market replay recorder"'. That option was not checked initially. However, running NT makes that 1Gb of memory inaccessible which slows down my machine, as well as limits me for running more large tests, and that's quite inconvenient. Also, now after some time NT started to occasionally suddenly shut down... I'd appreciate if you could find a way to deal with this, not to wait until the December release.

Upon a few hours of inconvenience the problem vanished. After another crush of NT it reloaded as ever before. Hard to say what that was, you might get a note of this memory leak. Thanks for your consideration!
Last edited by billitin; 09-25-2008 at 01:23 AM. Reason: Problem vanished
billitin is offline  
Reply With Quote
Old 09-25-2008, 08:07 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

billitin,

There is no memory leak. Memory is managed by .NET and it will free resources when it decides to. If you run large backtests every single data point requires memory and this is why it eats up all your RAM. Again, there will be improvements in NT7. You will need to work around your RAM limitations by doing smaller backtests for now.
NinjaTrader_Josh is offline  
Reply With Quote
Old 09-29-2008, 11:35 AM   #5
clint2008
Member
 
Join Date: Sep 2008
Posts: 62
Thanks: 0
Thanked 0 times in 0 posts
Default Performance issues / Ram consumption

I've read the thread about RAM consumption and the performance tips. Why isn't possible to check the Store Real-time bar data and Run market replay recorder on instrument level?
clint2008 is offline  
Reply With Quote
Old 09-29-2008, 11:39 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

It is possible. Most computers nowadays are powerful enough and have no issue with recording and storing at the same time. If you are seeing performance issues then you can consider turning one or the other off to improve performance.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-20-2008, 09:59 AM   #7
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 713
Thanks: 10
Thanked 10 times in 7 posts
Default

Quote:
Originally Posted by NinjaTrader_Josh View Post
billitin,

There is no memory leak. Memory is managed by .NET and it will free resources when it decides to. If you run large backtests every single data point requires memory and this is why it eats up all your RAM. Again, there will be improvements in NT7. You will need to work around your RAM limitations by doing smaller backtests for now.
I think there is a memory leak because the memory consumption gradually grows just as ninjatrader gradually slows down until the memory used is over 1 gig (I have 4 gigs total) and it's unusable. At that point I exit the application and then reload and it's fast. This is the only workaround I've found.

Just because .NET manages the memory doesn't mean there can't be leaks. People think there are no leaks in Java but it's not true either. If object references are kept around then the memory cannot be freed.
cunparis is offline  
Reply With Quote
Old 10-20-2008, 10:01 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

There will be improvements to performance in NT7.
NinjaTrader_Josh is offline  
Reply With Quote
Old 12-22-2008, 04:32 PM   #9
billitin
Senior Member
 
Join Date: Jun 2008
Posts: 146
Thanks: 0
Thanked 0 times in 0 posts
Default

Now I see it from Market Analyzer side: it sucks up 1Gb of RAM, then I close MA, and after it takes forever for NT to manage this action, memory is not released. Awaiting NT7
billitin is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:51 PM.