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