性能问答>关于MaxGCPauseMillis参数的问题>
2回复
4年前

关于MaxGCPauseMillis参数的问题



待检查的参数

-server
-Xmx5440M
-Xms5440M
-Xmn3072m
-XX:+UseParNewGC
-XX:SurvivorRatio=6
-XX:MaxTenuringThreshold=0
-XX:+PrintGCDateStamps
-XX:+PrintGCTimeStamps
-XX:+PrintGCDetails
-XX:MaxMetaspaceSize=256m
-XX:+UseConcMarkSweepGC
-XX:MetaspaceSize=256m
-XX:MaxGCPauseMillis=100
-XX:+ParallelRefProcEnabled

-XX:MaxGCPauseMillis=100 是否在parNew策略中无效 我看公司的JVM参数配置了,然而
2020-10-28T23:23:17.283+0800: 53.067: [GC (Allocation Failure) 2020-10-28T23:23:17.283+0800: 53.068: [ParNew: 2359296K->0K(2752512K), 1.0003732 secs] 2437466K->109768K(5177344K), 1.0006735 secs] [Times: user=3.66 sys=0.53, real=1.00 secs]
2020-10-28T23:23:49.550+0800: 85.334: [GC (Allocation Failure) 2020-10-28T23:23:49.550+0800: 85.334: [ParNew: 2359296K->0K(2752512K), 0.4215956 secs] 2469064K->120907K(5177344K), 0.4219725 secs] [Times: user=1.70 sys=0.19, real=0.42 secs]
2020-10-28T23:24:20.672+0800: 116.456: [GC (Allocation Failure) 2020-10-28T23:24:20.672+0800: 116.457: [ParNew: 2359296K->0K(2752512K), 0.4985377 secs] 2480203K->126822K(5177344K), 0.4988534 secs] [Times: user=1.90 sys=0.22, real=0.50 secs]
2020-10-28T23:24:55.986+0800: 151.770: [GC (Allocation Failure) 2020-10-28T23:24:55.986+0800: 151.770: [ParNew: 2359296K->0K(2752512K), 0.2799989 secs] 2486118K->129493K(5177344K), 0.2803076 secs] [Times: user=0.99 sys=0.38, real=0.28 secs]
是否是新生代设置的过大,导致的

3238 阅读
请先登录,查看2条精彩评论吧
快去登录吧,你将获得
  • 浏览更多精彩评论
  • 和开发者讨论交流,共同进步