To obtain GC Activity in Logs in Weblogic

Open setDomainEnv.sh and change it by adding the below lines and deleting some more lines as shown below.

WLS_HOME="${WL_HOME}/server"
export WLS_HOME

#****************************
echo SERVER_NAME=$SERVER_NAME
GCLOGFILE="bin/JVMGCStats$SERVER_NAME.log"
echo ***********************
if [ "${SERVER_NAME}" = "AdminServer" ] ; then
MEM_ARGS="-verbose:gc -Xms1024m -Xmx1024m -XX:MaxPermSize=128m -XX:SurvivorRatio=8 -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:$GCLOGFILE -DSESS_CLEAN_STARTUP=0 -DSESS_CLEAN_SLEEP=86400"
else
MEM_ARGS="-verbose:gc -Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:SurvivorRatio=8 -XX:+PrintGCDetails -XX:+PrintTenuringDistribution -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -Xloggc:$GCLOGFILE"
fi
#***************************

if [ "${JAVA_VENDOR}" = "Sun" ] ; then
 if [ "${PRODUCTION_MODE}" = "" ] ; then
  MEM_DEV_ARGS="-XX:CompileThreshold=8000"
  export MEM_DEV_ARGS
 fi
fi

The GC activity logs can be found in the bin folder with name JVMGCStatsAdminServer.log

Comments

Popular posts from this blog

Steps to Analyze AWR Report in Oracle

Vmstat Output explained

Verifications and Error Handling in LoadRunner *Web_reg_find and Web_reg_save_param*