I want to record the memory usage for some web / worker roles that are hosted in azure windows.
Is there a way to programmatically check the current memory used so that I can save this value somewhere for later use?
The only information I found was to get the current thread, and then call the method, which should return the heap memory usage. But I don’t think it helps me much in my problem, especially when there are asynchronous calls.
source
share