jinfo -flags pid 或者 jcmd pid VM.flags
VM Flags:
-XX:CICompilerCount=3
-XX:ConcGCThreads=1
-XX:G1ConcRefinementThreads=4
-XX:G1HeapRegionSize=1048576
-XX:GCDrainStackTargetSize=64
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/diagnostic/dump
-XX:InitialHeapSize=33554432
-XX:MarkStackSize=4194304
-XX:MaxHeapSize=1073741824
-XX:MaxNewSize=643825664
-XX:MinHeapDeltaBytes=1048576
-XX:NativeMemoryTracking=summary
-XX:NonNMethodCodeHeapSize=5830092
-XX:NonProfiledCodeHeapSize=122914074
-XX:ProfiledCodeHeapSize=122914074
-XX:ReservedCodeCacheSize=251658240
-XX:+SegmentedCodeCache
-XX:+UseCompressedClassPointers
-XX:+UseCompressedOops
-XX:+UseG1GC

本文详细解析了Java虚拟机的垃圾回收参数设置,包括G1GC收集器的配置,如CICompilerCount、ConcGCThreads等,以及堆内存管理参数如HeapDumpOnOutOfMemoryError、HeapDumpPath等。深入理解这些参数对于优化Java应用程序的性能至关重要。
9万+

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



