wood burning stoves 2.0*
The moose likes Tomcat and the fly likes log rotation in Tomcat and Apache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "log rotation in Tomcat and Apache" Watch "log rotation in Tomcat and Apache" New topic
Author

log rotation in Tomcat and Apache

Jason Kretzer
Ranch Hand

Joined: May 31, 2001
Posts: 280
Hello all:
I am using Tomcat 4.x and Apache 1.3.26 on RH7.3. I have noticed that the catalina.out gets REALLY huge after a while. I believe that sometimes this file is appended with a date and then a new catalina.out is created. I would like to do this daily with both the catalina.out and access_log for Apache. Will I have to use a crontab or does the software support doing this with some setting?
thanks!


Jason R. Kretzer<br />Software Engineer<br />System Administrator<br /><a href="http://alia.iwarp.com" target="_blank" rel="nofollow">http://alia.iwarp.com</a>
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
On the linux environment you should be able to use the logrotate tool. I haven't used it myself. You could probably get more info on logrotate on the Linux/Unix forums.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log rotation in Tomcat and Apache
 
Similar Threads
Running tomcat in linux
startup failed due to previous errors
Running tomcat in linux
Running tomcat in linux
Troubleshooting tips