JVM(2)——Linux Jar启动内存分类及GC日志打印

rm -rf ipb.log
nohup java -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/ruijie/diagon/logs/analysis-model-ipb -Xloggc:/home/ruijie/diagon/logs/analysis-model-ipb/ipb_gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PreserveFramePointer -Xmx5120m -Xms1024m -jar ../src/diagon/analysis-model-ipb/target/analysis-model-ipb-1.1.0-SNAPSHOT-exec.jar --spring.profiles.active=test > ipb.log &

 

posted @ 2018-08-30 10:12  xu_shuyi  阅读(1572)  评论(0编辑  收藏  举报