Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to control the size of tomcat Catalina.out file?

Status
Not open for further replies.

tlaurent

Technical User
Oct 2, 2005
6
US
Hello, I got this problem that the catalina.out file gets too big. It grows to a size of approx. 6 gig and then tomcat just crashes. Does anyone know how configure tomcat on linux so that catalina.out only get a size of 100 MB and then replaces it by a new empty catalina.out? Please any help will be more than welcome!
 
Hi

You forgot to mention the Tomcat version.

Tomcat's default logger ( as specified in the server.xml file ) is its own basic logger. It can put the current date into the log file name, which will result in writing to a new file each day. But the old files will not be automatically removed.

Is recommended to change that logger to a more complex one, like log4j. There are quite good descriptions on minaret.biz :

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top