Hi,
Use JAVA_OPTS in your $CATALINA_HOME/bin/catalina.sh.  For example,
JAVA_OPTS='-Xloggc:/var/log/tomcat4/tomcat_garbage.log'

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Tomas Straupis [mailto:[EMAIL PROTECTED]]
>Sent: Friday, October 11, 2002 11:13 AM
>To: [EMAIL PROTECTED]
>Subject: Xloggc?
>
>Hello
>
>  Had anyone of You tried logging GC actions to a file?
>
>  Its stated in
>http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/java.html, that
>-Xloggc:file option has to be used for that. So I place next line into
my
>tomcat4.conf file:
>  JAVACMD="$JAVA_HOME/bin/java
-Xloggc:/var/log/tomcat4/tomcat_garbage.log
>  restart tomcat. Wait for some time (~3-4 days, with at least 30 users
>comming in and using my apps). But nothing seems to appear in that dir.
>  Tomcat is writing other logs into that dir, so there shoud be no
problems
>with permissions.
>
>  Am I doing something wrong?
>
>P.S. I'm using tomcat 4.0.4 on rh7.3 with suns jdk1.4.1.
>
>  Thanks
>
>
>Tomas Straupis
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to