|
Jul
18
|
The default logging configuration that ships with Tomcat 6.0 logs to both catalina.out and also a daily log catalina.yyyy-mm-dd.log. The daily log starts a new file everyday, but catalina.out just continues to grow until your disk fills up.
To make things worse if you want to purge catalina.out you need to restart tomcat to free up the disk space used as tomcat holds the file open.
To avoid this situation what you can do is remove the logging to catalina.out (by removing the handler). This can be achieved by editting conf/logging.properties and changing:
.handlers = 1catalina.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
to
.handlers = 1catalina.org.apache.juli.FileHandler



January 20th, 2012 at 1:53 am
What if it is the catalina.yyyy-mm-dd.log that we wish to stop? logrotate seems t handle the catalina.out file just fine. Would we just delete the 1catalina.org.apache.juli.FileHandler?