I need to check how much memory is allocated in the heap. Is there a way to get this value programmatically with C#? I know about the System.Runtime.InteropServices.Marshal.SizeOf(…) but that only tells me the size of an object.
Category: heap-memory
How to fix the size of a Java heap
I know Java VM has “-XMx” and “-XMs” for setting the size of the heap. It also has a feature called “ergonomics”, that can intelligently adjust the size of the heap. But, I have a problem at hand requiring the heap with strictly fixed size. Here is the command line arguments: “-Xms2m -Xmx2m -XX:+PrintGCDetails” However, […]