Tuesday, April 7, 2015

Enable verbose GC in weblogic

For enabling GC collection in weblogic servers follow the below listed steps.

1. Open a terminal
2. Open BEA_HOME/DOMAIN_DIR/bin/setDomainEnv.sh
3. Add the GC options to the script changing the line

JAVA_OPTIONS="${JAVA_OPTIONS}" 
with
JAVA_OPTIONS="${JAVA_OPTIONS} -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps" 

4. Save the file
5. Restart the WebLogic Server using the script startWebLogic.sh or startManagedWebLogic.sh

No comments:

Post a Comment