JVM调优

JVM调优前一定要只要遇到什么问题、优化后的目标。否则投入多收获少。得不偿失。

2020-11-17T04:59:16.623+0800: 5.285: [GC (Allocation Failure) 2020-11-17T04:59:16.624+0800: 5.285: [ParNew2020-11-17T04:59:16.648+0800: 5.309: [SoftReference, 0 refs, 0.0002508 secs]2020-11-17T04:59:16.648+0800: 5.309: [WeakReference, 332 refs, 0.0001633 secs]2020-11-17T04:59:16.648+0800: 5.310: [FinalReference, 5452 refs, 0.0057402 secs]2020-11-17T04:59:16.654+0800: 5.315: [PhantomReference, 0 refs, 0 refs, 0.0002858 secs]2020-11-17T04:59:16.654+0800: 5.316: [JNI Weak Reference, 0.0000681 secs]
Desired survivor size 107347968 bytes, new threshold 6 (max 6)
- age   1:   17515352 bytes,   17515352 total
: 1677824K->17187K(1887488K), 0.0309183 secs] 1677824K->17187K(6081792K), 0.0310078 secs] [Times: user=0.14 sys=0.02, real=0.03 secs]
2020-11-17T04:59:17.966+0800: 6.628: [CMS-concurrent-abortable-preclean: 1.144/1.845 secs] [Times: user=4.88 sys=0.32, real=1.84 secs]
2020-11-17T04:59:17.966+0800: 6.628: [GC (CMS Final Remark) [YG occupancy: 925231 K (1887488 K)]2020-11-17T04:59:17.967+0800: 6.628: [Rescan (parallel) , 0.0808829 secs]2020-11-17T04:59:18.047+0800: 6.709: [weak refs processing2020-11-17T04:59:18.047+0800: 6.709: [SoftReference, 0 refs, 0.0002601 secs]2020-11-17T04:59:18.048+0800: 6.709: [WeakReference, 0 refs, 0.0001719 secs]2020-11-17T04:59:18.048+0800: 6.709: [FinalReference, 0 refs, 0.0001500 secs]2020-11-17T04:59:18.048+0800: 6.709: [PhantomReference, 0 refs, 0 refs, 0.0002673 secs]2020-11-17T04:59:18.048+0800: 6.710: [JNI Weak Reference, 0.0000138 secs], 0.0009146 secs]2020-11-17T04:59:18.048+0800: 6.710: [class unloading, 0.0111246 secs]2020-11-17T04:59:18.059+0800: 6.721: [scrub symbol table, 0.0063213 secs]2020-11-17T04:59:18.066+0800: 6.727: [scrub string table, 0.0006271 secs][1 CMS-remark: 0K(4194304K)] 925231K(6081792K), 0.1009594 secs] [Times: user=0.33 sys=0.01, real=0.10 secs]
2020-11-17T04:59:18.068+0800: 6.729: [CMS-concurrent-sweep-start]
2020-11-17T04:59:18.068+0800: 6.729: [CMS-concurrent-sweep: 0.000/0.000 secs] [Times: user=0.00 sys=0.00, real=0.00 secs]
2020-11-17T04:59:18.068+0800: 6.729: [CMS-concurrent-reset-start]
2020-11-17T04:59:18.165+0800: 6.827: [CMS-concurrent-reset: 0.098/0.098 secs] [Times: user=0.11 sys=0.08, real=0.10 secs]

GC (Allocation Failure)
Concurrent Abortable Preclean
CMS-concurrent-abortable-preclean

References

[]
[]
[] JVM调优实战:解决CMS concurrent-abortable-preclean LongGC的问题