java程序启动时怎么设置打印gc log
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/work/log/dump -verbose:gc -Xloggc:gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:+PrintReferenceGC -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
一些常用的jvm参数设置
-Xms1024m -Xmx1024m -Xmn256M -XX:MaxDirectMemorySize=128M -XX:MaxPermSize=128M
-XX:+UseConcMarkSweepGC -Xss512K -XX:+UseParNewGC -XX:+UseCompressedOops -XX:+PrintReferenceGC
-XX:CMSInitiatingOccupancyFraction=70
博客聚焦于Java程序启动相关设置,主要探讨了如何设置打印GC Log,同时提及一些常用的JVM参数设置,为Java开发人员在程序启动配置方面提供参考。

4187

被折叠的 条评论
为什么被折叠?



