JAVA_OPTS堆栈配置自动生成dump文件

JAVA_OPTS=-server -Xmx4G -Xms4G -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/deploy/logs/heapdump.hprof -Dfile.encoding=utf-8 -Djava.awt.headless=true

 

-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/app/deploy/logs/heapdump.hprof -Dfile.encoding=utf-8

-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/heapdump.hprof -Dfile.encoding=utf-8

posted @ 2022-10-25 16:58  谢端阳  阅读(124)  评论(0编辑  收藏  举报