Think before you speak, read before you think.

jmap heap dump

by

in

HOW TO CAPTURE HEAP DUMP? – JMAP, – XX:+HEAPDUMPONOUTOFMEMORYERROR

JHAT – HEAP DUMP ANALYSIS

切换到跑 java 进程所用的用户


[[email protected] etl] $ jmap -dump:live,file=/tmp/kafka_hdfs_1_minute.bin pid
[[email protected] etl] $ jmap -dump:live,file=/tmp/kafka_hdfs_15_minute.bin pid

类似的工具还有 jps, jstack, jmap, etc.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *