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.6.0_17\bin\java.exe"
-Dcom.sun.management.jmxremote -jar "J:\Program Files\java\jdk1.6.0_17\demo\jfc\Java2D\Java2Demo.jar"
rem in a separate BAT file do the following so you can
have both programs running at once.
rem load JConsole to watch Java2Demo
"J:\Program Files\java\jdk1.6.0_17\bin\jconsole.exe"
JVisualVM includes an API which could allow you to programmatically access to the same information, although it is unclear you can do that from the same JVM 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.191.107] | |
| Feedback | You are visitor number 8,268. | |