Garbage collection Log in tomcat
posted 19 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hello,
I would like to ask regarding setting up tomcat to display the garbage collection in the log file. I have tried editing the JVM_OPTS or JAVA_OPTS or CATALINA_OPTS but still i wasn't able to produce the garbage log in the catalina.out file.. Lastly, I tried editing the Apache Tomcat Properties and edited some of the variables there (Mainly initial memory pool and Maximum memory pool) Editing this had some effect. But when I tried adding the following to the JAVA Options there. Still no results so far.
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:SurvivorRatio=2 -Xincgc
Btw, the Tomcat Server is running on windows.
thanks in advance
I would like to ask regarding setting up tomcat to display the garbage collection in the log file. I have tried editing the JVM_OPTS or JAVA_OPTS or CATALINA_OPTS but still i wasn't able to produce the garbage log in the catalina.out file.. Lastly, I tried editing the Apache Tomcat Properties and edited some of the variables there (Mainly initial memory pool and Maximum memory pool) Editing this had some effect. But when I tried adding the following to the JAVA Options there. Still no results so far.
-verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -XX:SurvivorRatio=2 -Xincgc
Btw, the Tomcat Server is running on windows.
thanks in advance
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Hi gurus and greenhorns,
I try to configure gc logging to file for Tomcat 6.0
Tomcat is running on Java 6, Suse Linux 11.1 platform.
Here are jvm opts I specified:
CATALINA_OPTS="-Xms512m -Xmx2g -Xloggc:/home/gc.log -XX:NewRatio=2 -XX:+UseParallelOldGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps"
For some reason gc output is going to catalina.out while I specify a log file with this setting: -Xloggc:/home/gc.log
Earlier I didn't have problems with this setting when running tomcat 5.5 as a Windows service on Windows platform.
Any hints about how to fix this will be much appreciated.
I try to configure gc logging to file for Tomcat 6.0
Tomcat is running on Java 6, Suse Linux 11.1 platform.
Here are jvm opts I specified:
CATALINA_OPTS="-Xms512m -Xmx2g -Xloggc:/home/gc.log -XX:NewRatio=2 -XX:+UseParallelOldGC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps"
For some reason gc output is going to catalina.out while I specify a log file with this setting: -Xloggc:/home/gc.log
Earlier I didn't have problems with this setting when running tomcat 5.5 as a Windows service on Windows platform.
Any hints about how to fix this will be much appreciated.
Alexander Poleschuk
Greenhorn
Posts: 3
posted 16 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Update:
In -Xloggc, I specified tomcat logging directory for gc logging (in my case it's /etc/share/tomcat6/logs) and this solved my small problem ;-)
In -Xloggc, I specified tomcat logging directory for gc logging (in my case it's /etc/share/tomcat6/logs) and this solved my small problem ;-)
| Create symphonies in seed and soil. For this tiny ad: Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing |






