Created
March 20, 2019 06:51
-
-
Save lhy880518/81a62f3eb834f084ef84371292107206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
How to catch gc log in here
http://blog.naver.com/PostView.nhn?blogId=bumsukoh&logNo=110119881124&parentCategoryNo=&categoryNo=22&viewDate=&isShowPopularPosts=false&from=postView