Jul 202011
 Posted by on July 20, 2011 at 1:33 am Application Servers, Java, Performance, Troubleshooting Tagged with: ,  Add comments

To let JVM or java log gc activities we have to add/append the following option to existing JAVA_OPTIONS in the weblogic/websphere startup scripts:

export VERBOSE_GC_OPTIONS="-verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/opt/verbose/logs/gc.log -XX:+PrintClassHistogram"

This requires a managed server restart to enable functionality.


GC threashold’s can be set using below parameters but be careful it may hamber the performance


You need to be careful with the settings, as low value setting can affect your overall throughput. The values should be set based on your performance requirements. There is no generic value that we can recommend.

© Incase of any copyright infringements please check copyrights page for faster resolutions.

  One Response to “Steps to enable java log gc activities”

  1. I never thought of it that way, well put!

Leave a Reply

Show Buttons
Hide Buttons