jvm 调优汇总
利用 Java dump 进行 JVM 故障诊断
JVM性能调优监控工具jps、jstack、jmap、jhat、jstat使用详解
Java Virtual Machine Statistics Monitoring Tool
其他JVM性能调优参考资料:
《Java虚拟机规范》
《Java Performance》
《Trouble Shooting Guide for JavaSE 6 with HotSpot VM》: http://www.oracle.com/technetwork/java/javase/tsg-vm-149989.pdf
《Effective Java》
VisualVM: http://docs.oracle.com/javase/7/docs/technotes/guides/visualvm/
jConsole: http://docs.oracle.com/javase/1.5.0/docs/guide/management/jconsole.html
Monitoring and Managing JavaSE 6 Applications: http://www.oracle.com/technetwork/articles/javase/monitoring-141801.html
--------------------------------------------
top -Hp pid 查看费时间的线程
printf "%x\n" 1181 查看16进制串
jstack 1181| grep 4d0
----------------
./jmap -heap 5169
查看jvm各区域内存占用情况
concurrent mark-sweep generation:
capacity = 1171062784 (1116.8125MB)
used = 884262728 (843.2986526489258MB)
free = 286800056 (273.5138473510742MB)
75.50942102178529% used
./jstat -gc 5169
查看垃圾回收相关情况,如内存占用,回收次数时间等
S0C、S1C、S0U、S1U:Survivor 0/1区容量(Capacity)和使用量(Used) EC、EU:Eden区容量和使用量 OC、OU:年老代容量和使用量 PC、PU:永久代容量和使用量 YGC、YGT:年轻代GC次数和GC耗时 FGC、FGCT:Full GC次数和Full GC耗时 GCT:GC总耗时
jmap -dump:format=b,file=/tmp/dump.dat 1181
jhat -port 9998 /tmp/dump.dat 访问 101.200.221.206:9998
相关推荐
bulargyzone 2020-10-26
csdnxingyuntian 2020-10-19
Locksk 2020-10-12
liufangbaishi0 2020-09-23
darlingtangli 2020-09-10
lxttiger 2020-08-18
coolrainman 2020-07-28
一支菜鸟 2020-07-27
zhouxihua0 2020-07-27
nangongyanya 2020-07-26
chenkai00 2020-07-26
voiletbin 2020-07-26
ChenRuiyz 2020-07-26
pbaabc 2020-07-23
nbfcome 2020-07-19
liufangbaishi0 2020-07-18
ChenRuiyz 2020-07-18
empireghost 2020-07-10
一支菜鸟 2020-07-06