I noticed that my catalina.out in /var/log/tomcat is this big... why? How do I avoid this?
Asked
Active
Viewed 5,857 times
4
-
Disable logging, maybe? Look what's in it – is it necessary? – slhck Nov 03 '11 at 16:12
-
Yes it is! Is there a way to have it cut the file like log4j does? – user19203 Nov 03 '11 at 16:24
-
See: http://www.vineetmanohar.com/2010/03/howto-rotate-tomcat-catalina-out/ – slhck Nov 03 '11 at 16:38
1 Answers
1
Check out the Apache Tomcat Logging FAQ, which points to a thread on how to rotate catalina.out:
On Unix I simply pipe the catalina.sh command to /usr/bin/cronolog and it rotates the log for me. See www.cronolog.org for more info...
And as @slhck points out, there are some other good instructions on catalina.out rotation.
JW8
- 1,192
- 3
- 12
- 26