08.06.2014 Views

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

Download PDF (1.3 MB) - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.16.1 Monitoring garbage collection<br />

To set the heap correctly, determine how the heap is being used by collecting a verbosegc<br />

trace. A verbose garbage collection (verbosegc) trace prints garbage collection actions and<br />

statistics to stderr in <strong>IBM</strong> JVMs and stdout in Oracle HotSpot JVMs. The verbosegc trace is<br />

activated by using the Java runtime option -verbose:gc. Output from verbosegc differs for the<br />

HotSpot and <strong>IBM</strong> JVMs, as shown by Example 4-6 and Example 4-7.<br />

Example 4-6 <strong>IBM</strong> JVM verbosegc trace output<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Example 4-7 Solaris HotSpot JVM verbosgc trace output (young and old)<br />

[GC 325816K 83372K(776768K), 0.2454258 secs]<br />

[Full GC 267628K 83769K

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!