Is there any native java code to check the memory utilized by the program, or the only way possible is to check memory utilized by the JVM itlself?
can this be done purely in java or we need external process to fulfill this job?
I think JConsole would be a good start.
You could use java.lang.management.MemoryUsage, or the external tool, VisualVM (shipped with JDK).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With