tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: Limit size of tomcat_out.log?
Date Thu, 09 Dec 2004 20:03:57 GMT

Hi,

>Is it possible, and if so how, to limit the size of the tomcat_out.og
file?
>I have a development box that is running out of space sometimes because
the
>log grows rather large when a lot of users are testing.  Thanks all!

What Tomcat versions are you using?

Tomcat's Loggers (version 5.0 and earlier) automatically rotate, so you
can have a script in place to delete old ones.  For Tomcat 5.5 and
later, you configure the logging via log4j or JDK 1.4 logging, which
both support various options to control/trim file size.

It's not good logging practice to write everything to standard output.
Ig that's what's happening, and that's why it's ending up in tomcat.log,
you should change the apps at some points to use a proper logging
framework like log4j.

Finally, there are tools like cronolog and logrotate which can
rotate/trim this file for you: they're free and easy to use, just Google
for them.

The other approach is holistic: either get more disk space (it's cheap),
configure the logging differently when there are many users, or both.

So there's a bunch of stuff you can and should do.  But Tomcat by itself
doesn't provide much of it for you.  These are routine sysadmin tasks.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message