We rotate the catalina.out file using the logrotate program on linux. The rotation is based on file size - 10 Meg limit. We use copytruncate with compression and maintain 14 rotated files before overwriting the oldest.
The following is a logrotate script that is placed in the /etc/logrotate.d directory of the server running the tomcat app: /home/tc1/tomcat/logs/catalina.out { rotate 14 size 10M copytruncate compress postrotate # reset ownership to comply with directory's permissions chown tc1.apps /home/tc1/tomcat/logs/catalina.out.* endscript notifempty missingok } The man page on lograte is pretty thorough. -----Original Message----- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Friday, February 03, 2006 8:20 AM To: Tomcat Users List Subject: Re: Catalina.out gets to big-> Server crashes http://tomcat.apache.org/faq/logging.html#catalina.out -Tim Joost de Heer wrote: >>now the question I have is now, how can I here setup jsvc so that it >>uses logrotation, > > > As far as I'm aware catalina.out can't be rotated. For the Tomcat > servers I maintain I've written a script that stops/moves > catalina.out/gzips catalina.out/starts Tomcat every Sunday night at > 4am. Not the most elegant solution but it works. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]