Skip to content

Instantly share code, notes, and snippets.

@lhy880518
Created March 20, 2019 06:51
Show Gist options
  • Save lhy880518/81a62f3eb834f084ef84371292107206 to your computer and use it in GitHub Desktop.
Save lhy880518/81a62f3eb834f084ef84371292107206 to your computer and use it in GitHub Desktop.
1. cd TOMCAT_HOME/bin
2. cat catalina.sh
3. check this comment
# but allow them to be specified in setenv.sh, in rare case when it is needed.
CLASSPATH=
if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then
. "$CATALINA_BASE/bin/setenv.sh"
elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then
. "$CATALINA_HOME/bin/setenv.sh"
fi
4. vi setenv.sh
5. CATALINA_OPTS="-verbosegc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Xloggc:/#want GC Log Location#/gc.log "
Happy To check Gc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment