I am running a 32 GB / 8 vcore VM in Azure.
Without running VS or anything heavy, I noticed that the memory would escalate and eventually consume 27-28 GB of memory. This is a massive amount of memory for a single app to consume.
This is without strats, indicators, DOM, or anything else running. One single MNQ chart with 64/16 bricks and nothing else using the live connection.
I ran dotMemory on the exe and noticed that the gen 2 heap was increasing at 100 MB per minute. This is crazy.
I asked ChatGPT for a sanity check:
"Unintended Object Retention: An increase of 100 MB per minute in the Gen 2 heap suggests that your application is increasingly holding onto long-lived objects. This can happen if objects are being created and not properly released or dereferenced, causing the GC to think they are still needed."
This matches my understanding as well. As of now, the gen 2 heap is 16.3 GB.
Has anyone every profiled memory usage for NT over at your place? Because it doesn't look good at all from my end. I can't even get a full memory capture in dotMemory to look at what's going on because it hangs.
The findings suggest that there are serious leaking issues in this app.

Comment