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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -