1, JDK tools
(1) Tools:
There java.exe in the bin directory of jdk, javac.exe and other command-line tool that can be used to monitor and troubleshoot virtual machine
View in the command line window:
effect:
jvisualvm.exe a graphical Java Virtual Machine
jconsole.exe java monitoring station and management console
jps.exe JVM Process Status Process Status tool. Lists the target system JJVM HotSpot
jstat.exe records in accordance with the specific requirements and performance data collected by a JVM command line
daemon jstatd.exe JVM jstat of
jmc.exe Java Mission Control tools (Java Mission Control), mainly for HotSpot JVM production time monitoring, analysis and diagnosis.
jinfo.exe configuration or print a Java processes Flag VM
jhat.exe heap storage viewer
jmap.exe Java memory map
jsadebugd.exe Java's Serviceability Agent Debug Daemon
jstack.exe Java stack trace
2, jps: show running virtual machine process
-p: omit the main class information, only (unique number of local virtual machine process) LVMID
-l: Displays the virtual machine to start the process when the parameters passed to main
-m: display the full name of the class, if it is displayed jar package jar path
-v: display parameters jvm virtual machine start time
-mlv:
-ml:
3 jstat
Every second print time, print a total of 50 times
jstst -gc 2368 1000 50
-compiler:
-class:
-gc:
-gcnewcapacity
(And there are not finished sorting)