jvm-gc调优1
作者:互联网
项目启动 添加 -Xverify:none
类加载过程中禁止掉字节码验证过程
添加
-XX:+PrintGCDateStamps
-XX:+PrintGCDetails
-Xloggc:./logs/gclogs
生成日志
默认(21M)
2022-03-02T17:36:55.244+0800: 3.147: [Full GC (Metadata GC Threshold)……[Metaspace: 20511K->20511K(1067008K)], 0.0269635 secs][Times: user=0.06 sys=0.00, real=0.03 secs]
2022-03-02T17:37:24.517+0800: 32.420: [Full GC (Metadata GC Threshold)…… [Metaspace: 34213K->34213K(1081344K)], 0.0795222 secs] [Times: user=0.19 sys=0.00, real=0.08 secs]
2022-03-02T17:38:09.653+0800: 77.555: [Full GC (Metadata GC Threshold)…… [Metaspace: 56922K->56922K(1101824K)], 0.2143848 secs] [Times: user=0.66 sys=0.02, real=0.21 secs]
-XX:MetaspaceSize=64M
2022-03-02T17:31:40.126+0800: 126.508: [Full GC (Metadata GC Threshold) …… [Metaspace: 63075K->63075K(1105920K)], 0.2714693 secs] [Times: user=0.70 sys=0.00, real=0.27 secs]
标签:03,Full,02T17,secs,调优,GC,jvm,gc,Metadata 来源: https://www.cnblogs.com/heshana/p/15956470.html