java - How to get JVM? -
i wanted see memory consumption of running java program.
if write program runtime.freememory()
, program run under new jvm.
how running java program's jvm , run runtime.freememory()
?
you can use jvisualvm. accesses local or remote (if enabled) jvms , provides various options graphically monitor memory usage , threads. many similar tools (command line or graphical) exist if 1 not suit needs.
Comments
Post a Comment