Posts

Showing posts from June, 2019

How to find java heap memory usage ?

jmap -heap 26442 Attaching to process ID 26442, please wait... Debugger attached successfully. Server compiler detected. JVM version is 8.1.045 9.0.4+011 using thread-local object allocation. Garbage-First (G1) GC with 8 thread(s) Heap Configuration:    MinHeapFreeRatio         = 40    MaxHeapFreeRatio         = 70    MaxHeapSize              = 27262976000 (26000.0MB)    NewSize                  = 5452592 (5.1999969482421875MB)    MaxNewSize               = 16357785600 (15600.0MB)    OldSize                  = 5452592 (5.1999969482421875MB)    NewRatio                 = 2    SurvivorRatio            = 8    MetaspaceSize            = 21807104 (20.796875MB)    CompressedClassSpaceSize = 268435456 (256.0MB)    MaxMetaspaceSize         = 10737418240 (10240.0MB)    G1HeapRegionSize         = 8388608 (8.0MB) Heap Usage: G1 Heap:    regions  = 3250    capacity = 27262976000 (26000.0MB)    used     = 25738931416 (24546.557823181152MB)    free     = 1524044584 (1453.4421768188477MB)    94.40