startup: 50 Mb
Open a strategy into the editor: 84 Mb (!!!!)
Compile: no change
Run backtest (12 stocks, 3 mo of 5min data): 157 Mb
Comment a single line and recompile: 160 Mb
Re-run backtest with same data: 214 Mb (peaked at 240 Mb)
Uncomment the same line, recompile and re-run: 230 Mb (peaked at 340 Mb)
After an horu or two of use, the memory has gobbled up more than half a Gb and is killing my machine so I have to stop & restart. I watched the VM Size and the Mem Usage to see if the memory would be free()'d or reclaimed but I never noticed it. During backtesting, I would see fluctuations of over 100 Mb but this would get freed pretty quickly, but it seems like some gets left over.
I'm running NinjaTrader 6.5
Comment