标签:ram mat host san XML for xmx pat ror
添加JVM监控:
nohup java -Xms8192M -Xmx16384M -XX:PermSize=1024M -server -Dprogram.name=avmon-server -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/home/my.hprof -XX:OnOutOfMemoryError="/opt/H3C/avmon-server/bin/forcerestart.sh" -Djava.rmi.server.hostname=10.13.136.22 -cp ../conf/:../lib/*:../ext-lib/*:../ext-lib/MessageConfig.xml:../conf/server.properties:../ext-lib/test.Start >nohup.out 2>&1 &
jmap 使用:
dump 堆文件
jdk_bin/jmap -F -J-Xms256m -dump:format=b,live,file=/home/myheap.bin 20789 (20789 is PID)
命令:jmap -histo:live pid
描述:显示堆中对象的统计信息
命令:jmap -heap pid
描述:显示Java堆详细信息
标签:ram mat host san XML for xmx pat ror
原文地址:https://www.cnblogs.com/bt21cn/p/10551083.html