rem load the sample progrom to monitor: Java2Demo, enabling monitoring with
com.sun.management.jmxremote property
rem The following should be all on one line:
"J:\Program Files\java\jdk1.7.0_02\bin\java.exe" -Dcom.sun.management.jmxremote -jar "J:\Program Files\java\jdk1.7.0_02
\demo\jfc\Java2D\Java2Demo.jar"
rem in a separate BAT (Batch) file do the following so you can have both programs running at
once.
rem load JConsole to watch Java2Demo
"J:\Program Files\java\jdk1.7.0_02\bin\jconsole.exe"
JVisualVM includes an API (Application Programming Interface) which could allow you to programmatically access to the same information, although it is unclear you can do that from the same JVM (Java Virtual Machine) itself (i.e. a Java application which monitors its own JVM).
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/jconsole.html | J:\mindprod\jgloss\jconsole.html | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.214] | |
| Feedback | You are visitor number 12,005. | |