JVM的GC学习
2023-12-28T17:20:25.182+0800: 7.363: [Full GC (Metadata GC Threshold) [PSYoungGen: 29067K->0K(13002752K)] [ParOldGen: 16K->26768K(16252928K)] 29083K->26768K(29255680K), [Metaspace: 20543K->20543K(1069056K)], 0.0838171 secs] [Times: user=2.13 sys=0.09, real=0.08 secs]
2023-12-28T17:20:32.284+0800: 14.466: [Full GC (Metadata GC Threshold) [PSYoungGen: 26819K->0K(13002752K)] [ParOldGen: 26840K->32947K(16252928K)] 53660K->32947K(29255680K), [Metaspace: 34164K->34164K(1081344K)], 0.1309342 secs] [Times: user=2.50 sys=0.05, real=0.13 secs]
2023-12-28T17:21:48.342+0800: 90.524: [Full GC (Metadata GC Threshold) [PSYoungGen: 183081K->0K(13002752K)] [ParOldGen: 32963K->200557K(16252928K)] 216044K->200557K(29255680K), [Metaspace: 57239K->57239K(1101824K)], 1.5374013 secs] [Times: user=87.85 sys=0.29, real=1.53 secs]
2023-12-28T17:23:52.459+0800: 214.641: [Full GC (Metadata GC Threshold) [PSYoungGen: 52485K->0K(16016896K)] [ParOldGen: 200581K->243453K(16252928K)] 253067K->243453K(32269824K), [Metaspace: 96254K->96254K(1138688K)], 1.0103220 secs] [Times: user=49.05 sys=0.19, real=1.01 secs]
2023-12-28T17:25:30.197+0800: 312.378: [Full GC (Metadata GC Threshold) [PSYoungGen: 339032K->0K(15707648K)] [ParOldGen: 456472K->734558K(16252928K)] 795504K->734558K(31960576K), [Metaspace: 161626K->161514K(1198080K)], 1.7218486 secs] [Times: user=71.52 sys=0.42, real=1.72 secs]
2023-12-28T17:27:23.462+0800: 425.644: [Full GC (Metadata GC Threshold) [PSYoungGen: 105286K->0K(15768064K)] [ParOldGen: 734590K->812698K(16252928K)] 839876K->812698K(32020992K), [Metaspace: 270346K->270346K(1302528K)], 1.9397043 secs] [Times: user=78.36 sys=1.41, real=1.94 secs]
2023-12-28T17:32:09.416+0800: 711.597: [Full GC (Metadata GC Threshold) [PSYoungGen: 171776K->0K(15907840K)] [ParOldGen: 812730K->929100K(16252928K)] 984507K->929100K(32160768K), [Metaspace: 451649K->451392K(1470464K)], 2.1361588 secs] [Times: user=73.47 sys=1.18, real=2.14 secs]
2023-12-28T17:55:09.172+0800: 2091.354: [Full GC (Metadata GC Threshold) [PSYoungGen: 848532K->0K(14646784K)] [ParOldGen: 1587296K->2274899K(16252928K)] 2435828K->2274899K(30899712K), [Metaspace: 742860K->742785K(1748992K)], 3.8757235 secs] [Times: user=99.61 sys=1.02, real=3.87 secs]
参数配置
-XX:+PrintSafepointStatistics -XX:PrintSafepointStatisticsCount=1 -XX:+SafepointTimeout -XX:SafepointTimeoutDelay=2000
-XX:+UseCountedLoopSafepoints -XX:-UseBiasedLocking
-XX:+UnlockDiagnosticVMOptions -XX:GuaranteedSafepointInterval=0
-XX:+PrintGCApplicationStoppedTime -XX:+PrintGCDetails -XX:-DisableExplicitGC
-XX:+PrintGC -XX:+PrintGCDateStamps -XX:-UseGCOverheadLimit -XX:+PrintGCTimeStamps
-Xloggc:./dump/gclog -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./dump
-XX:OnOutOfMemoryError=/restart.sh
-XX:NativeMemoryTracking=detail
-Xmx31g -Xms31g -XX:NewRatio=1 -XX:SurvivorRatio=3 -XX:MetaspaceSize=2g
-XX:InitialCodeCacheSize=1G -XX:ReservedCodeCacheSize=1G
标签:real,Full,secs,学习,XX,GC,JVM,Metadata
From: https://www.cnblogs.com/jinanxiaolaohu/p/17933443.html