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.40983778146597% used
G1 Young Generation:
Eden Space:
   regions  = 30
   capacity = 1434451968 (1368.0MB)
   used     = 251658240 (240.0MB)
   free     = 1182793728 (1128.0MB)
   17.54385964912281% used
Survivor Space:
   regions  = 0
   capacity = 0 (0.0MB)
   used     = 0 (0.0MB)
   free     = 0 (0.0MB)
   0.0% used
G1 Old Generation:
   regions  = 3039
   capacity = 25828524032 (24632.0MB)
   used     = 25487273176 (24306.557823181152MB)
   free     = 341250856 (325.44217681884766MB)
   98.67878297816317% used

113677 interned Strings occupying 12649136 bytes.

Comments

Popular posts from this blog

Logical volume vmxxxx_img is used by another device - Error on LVM removal

Open VZ cheat Sheet

Cheat sheet for Hardware RAID health check - Megaraid, Adaptec, 3wareraid and HPraid.