JAVA_OPT="$JAVA_OPT -XX:+HeapDumpOnOutOfMemoryError"
JAVA_OPT="$JAVA_OPT -XX:HeapDumpPath=/home/admin/heapdump"
手动
jmap -dump:live,format=b,file=/home/admin/dump.bin 1534
JAVA_OPT="$JAVA_OPT -XX:HeapDumpPath=/home/admin/heapdump"
手动
jmap -dump:live,format=b,file=/home/admin/dump.bin 1534