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.8.0_131\\bin\java.exe -Dcom.sun.management.jmxremote -jar
"J:\Program Files\java\jdk1.8.0_131\
\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.8.0_131\\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).
This page is posted |
http://mindprod.com/jgloss/jconsole.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\jconsole.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.141.198.13] |
| |
Feedback |
You are visitor number | |