Excessive RAM usage while optimizing

I’m currently running a large, multi-day optimisation on a custom strategy. I’ve noticed that RAM usage increases whenever I open the workstation to check progress, typically jumping by around 10%. I’m planning to try accessing it via Remote Desktop to see if that helps, but at the moment, the process is already using over 50 GB of the 72 GB allocated to the VM.

Has anyone experienced the same? Could this be how NT8 utilises RAM, or could this be something in my code?

I think I may have identified the cause of this behaviour. From what I’ve read, NinjaTrader 8 uses system memory to store optimisation data. When I run an optimisation with 16 million iterations, my RAM usage becomes extremely high, exceeding 80GB out of my 128GB. I’ve also noticed that RAM usage increases further when I log in, as system resources are utilised, such as the screen and keyboard.