Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to read the output of "jstat  -gcutil <PID>?"

Posted on 2014-11-17
1
Medium Priority
?
835 Views
Last Modified: 2014-11-23
I am running the tomcat server and getting heap memory related error in catalina.out when I execute "jstat  -gcutil <PID>" I see following:

/usr/java/jdk1.7.0_25/bin/jstat  -gcutil 47929 
  S0     S1     E      O      P     YGC     YGCT    FGC    FGCT     GCT   
  0.00   0.00  68.46 100.00  57.08  44539 5829.704 303497 241552.104 247381.808

Open in new window


How to read above output? what is S0/S1/E/O/P and does it doing full GCing? Thanks!
0
Comment
Question by:beer9
1 Comment
 
LVL 21

Accepted Solution

by:
Amitkumar Panchal earned 2000 total points
ID: 40448928
S0 =      Survivor space 0 utilization as a percentage of the space's current capacity.
S1 = Survivor space 1 utilization as a percentage of the space's current capacity.
E = Eden space utilization as a percentage of the space's current capacity.
O = Old space utilization as a percentage of the space's current capacity.
P = Permanent space utilization as a percentage of the space's current capacity.
YGC = Number of young generation GC events.
YGCT = Young generation garbage collection time.
FGC = Number of full GC events.
FGCT = Full garbage collection time.
GCT = Total garbage collection time.


Refer the documentation at https://docs.oracle.com/javase/7/docs/technotes/tools/share/jstat.html#gcutil_option

Additionally you can refer http://www.cs.lafayette.edu/docs/java/tooldocs/share/jstat.html also.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question