Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Memory not unloading after aborting strategy analyzer
Collapse
X
-
Memory not unloading after aborting strategy analyzer
After aborting a Strategy analyzer run on NT 8.1.2.1, NT8 is still consuming 29gb+ of memory with nothing going on. I have a couple strategies on the list but not enabled, no active data connections, no additional workspaces open, a single empty chart, and a NinjaScript Editor window open.Tags: None
-
64gb is all the laptop can handle. The background programs I have running occupy 5gb or less. This was the first optimization since starting NT8.
One would think it could offload results to the hard drive rather than retaining them in RAM where it could overload.
Comment
-
It's a known issue with the analyzer. 64GB is enough. NT can utilize all the available RAM, so buying more RAM won't help. Personally I restart NT when it consumes 80-90% of RAM. It's the best workaround. There have been feature request to enable calling the garbage collector within the strategy. Maybe our children will see its implementation
Last edited by Leeroy_Jenkins; 01-28-2024, 08:57 AM.
- Likes 2
Comment
-
Hello Conzeptzx,
Thank you for your post.
Aborting the backtest can take a significant amount of time, and it often takes longer for the garbage collection to start freeing up the memory.
As Leeroy_Jenkins mentioned, if your computer's memory runs out and it starts paging it will take a very long time for all operations to finish and for enough memory to marked for garbage collection that the system stops paging, before the garbage collection can work at normal speed.
Please let us know if you have any other questions.
Comment
-
"NT can utilize all the available RAM, so buying more RAM won't help." This is so true that many of us are wasting time running optimizations and ending with crashes or BSODs. Why on earth is NT eating all your ram without any restriction until it crashes your pc? One solution would be to use the 32bit version. But no, the 32bit is no longer supplied. Isn't it fantastic? What a painful journey this has been.Originally posted by Leeroy_Jenkins View PostIt's a known issue with the analyzer. 64GB is enough. NT can utilize all the available RAM, so buying more RAM won't help. Personally I restart NT when it consumes 80-90% of RAM. It's the best workaround. There have been feature request to enable calling the garbage collector within the strategy. Maybe our children will see its implementation
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
80 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
45 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
29 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
32 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
66 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment