JBoss Community

Re: How Can I monitoring java heap with jstat?

created by Nikhil Mone in Performance Tuning - View the full discussion

You can also try below command that gives you detail of entire memory usage :

 

=========================================

$ jmap -heap <Proces ID of your JVM>

Attaching to process ID 29696, please wait...

Debugger attached successfully.

Server compiler detected.

JVM version is 20.6-b01

 

using thread-local object allocation.

Parallel GC with 4 thread(s)

 

Heap Configuration:

   MinHeapFreeRatio = 40

   MaxHeapFreeRatio = 70

   MaxHeapSize      = 1367343104 (1304.0MB)

   NewSize          = 1310720 (1.25MB)

   MaxNewSize       = 17592186044415 MB

   OldSize          = 5439488 (5.1875MB)

   NewRatio         = 2

   SurvivorRatio    = 8

   PermSize         = 21757952 (20.75MB)

   MaxPermSize      = 268435456 (256.0MB)

 

Heap Usage:

PS Young Generation

Eden Space:

   capacity = 341966848 (326.125MB)

   used     = 298634744 (284.80028533935547MB)

   free     = 43332104 (41.32471466064453MB)

   87.32856583805457% used

From Space:

   capacity = 56885248 (54.25MB)

   used     = 56854136 (54.22032928466797MB)

   free     = 31112 (0.02967071533203125MB)

   99.94530743717598% used

To Space:

   capacity = 56885248 (54.25MB)

   used     = 0 (0.0MB)

   free     = 56885248 (54.25MB)

   0.0% used

PS Old Generation

   capacity = 910884864 (868.6875MB)

   used     = 71342136 (68.03716278076172MB)

   free     = 839542728 (800.6503372192383MB)

   7.832179325794572% used

PS Perm Generation

   capacity = 71303168 (68.0MB)

   used     = 71145280 (67.84942626953125MB)

   free     = 157888 (0.15057373046875MB)

   99.77856804342831% used

=========================================

Reply to this message by going to Community

Start a new discussion in Performance Tuning at Community