jcmd - new diagnistic tool from jdk 7 package. Very usefool in all jvm administration processes.
very small example:
1. man jcmd
2. jcmd - process list
3. available options to run
[marek@localhost mb]$ jcmd 7607 help
7607:
The following commands are available:
VM.native_memory
VM.commercial_features
ManagementAgent.stop
ManagementAgent.start_local
ManagementAgent.start
Thread.print
GC.class_histogram
GC.heap_dump
GC.run_finalization
GC.run
VM.uptime
VM.flags
VM.system_properties
VM.command_line
VM.version
help
.....
[marek@localhost mb]$ jcmd 8560 PerfCounter.print | grep java.property.java.vm
java.property.java.vm.info="mixed mode"
java.property.java.vm.name="Java HotSpot(TM) 64-Bit Server VM"
java.property.java.vm.specification.name="Java Virtual Machine Specification"
java.property.java.vm.specification.vendor="Oracle Corporation"
java.property.java.vm.specification.version="1.7"
java.property.java.vm.vendor="Oracle Corporation"
java.property.java.vm.version="24.51-b03"
Brak komentarzy:
Prześlij komentarz