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 > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 11-11-2008, 03:28 AM   #1
magicboiz
Junior Member
 
Join Date: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default Memory Leak problem?

Hi there!

after running an Optimization (Default or GAOptimizer, whatever), I see in my windows task manager that Ninjatrader has many RAM allocated. It looks like after the optimization, NT does not deallocate memory.... is this a normal behavior, or a memory leak?

Regards
magicboiz is offline  
Reply With Quote
Old 11-11-2008, 06:01 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Try optimizing SampleMACrossOver, do you get the same results? How much RAM is being used?
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-11-2008, 09:21 AM   #3
magicboiz
Junior Member
 
Join Date: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default

before SampleMACrossOver optimization: 987.744KB
after 3 optimizations (parameter optimized: Fast Stoch): 995.084KB (even with the Strategy Analizer window closed)

Optimization period: 6/11/2008 -> 11/11/2008
Optimization timeframe: 5 minutes

Regards
magicboiz is offline  
Reply With Quote
Old 11-11-2008, 09:33 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

magicboiz,

Memory release is managed by the .NET framework so whenever .NET decides to release the resources it will do that. NT7 will bring improvements in this area though.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-11-2008, 09:44 AM   #5
magicboiz
Junior Member
 
Join Date: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default

Until NT7 see the daylight, walk forward is almost impossible. I always get "System.OutOfMemoryException".

My machine has 3Gb, and I'm going to buy 1Gb extra.... but......

do you know if .NET framework has any procedure to force memory deallocation?



Quote:
Originally Posted by NinjaTrader_Josh View Post
magicboiz,

Memory release is managed by the .NET framework so whenever .NET decides to release the resources it will do that. NT7 will bring improvements in this area though.
magicboiz is offline  
Reply With Quote
Old 11-11-2008, 10:12 AM   #6
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Unfortunately that is beyond the level of support we can offer. Make sure you release all objects you use internally. If you created your own objects and things please remember to use the Dispose() method. If you are not sure if you created your own things you most likely did not. That is all we can suggest at this point in time. Thank you for your patience.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-11-2008, 10:35 AM   #7
magicboiz
Junior Member
 
Join Date: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default

you're right, i didn't program nothing beyond the wizard and little else....



Quote:
Originally Posted by NinjaTrader_Josh View Post
Unfortunately that is beyond the level of support we can offer. Make sure you release all objects you use internally. If you created your own objects and things please remember to use the Dispose() method. If you are not sure if you created your own things you most likely did not. That is all we can suggest at this point in time. Thank you for your patience.
magicboiz is offline  
Reply With Quote
Old 11-11-2008, 10:42 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Here are some performance tips: http://www.ninjatrader-support.com/H...rformanceTips1

Decreasing the amount of days you are testing on may help positively too.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-11-2008, 11:39 AM   #9
magicboiz
Junior Member
 
Join Date: Oct 2008
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default

Update!!!:

The problem arises when the optimizer optimzes on metric "my system quality number" instead of "max.profit factor" or "max net profit" or whatever metric you packed in the standard NT installation.

So the problem, I think, is the SQN.cs Type spreaded in the forum: http://www.ninjatrader-support2.com/...&highlight=SQN


Regards


Quote:
Originally Posted by NinjaTrader_Josh View Post
Here are some performance tips: http://www.ninjatrader-support.com/H...rformanceTips1

Decreasing the amount of days you are testing on may help positively too.
magicboiz 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Leak or poor garbage collection? adrian Miscellaneous Support 8 04-19-2008 02:35 AM
Memory Leaks... wayneFH Historical NinjaTrader 6.5 Beta Threads 6 03-31-2008 11:01 AM
Memory Leak/Market Analyzer... funk101 Historical NinjaTrader 6.5 Beta Threads 3 03-30-2008 11:47 PM
Urgent Memory Leak -- How to Reproduce wayneFH Historical NinjaTrader 6.5 Beta Threads 8 03-28-2008 07:26 AM
Memory Leak? NinjaTrader_Josh Suggestions And Feedback 10 08-06-2007 12:36 PM


All times are GMT -6. The time now is 01:56 AM.