tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <>
Subject RE: Clearing the catalina.out file
Date Fri, 14 Aug 2009 16:48:12 GMT
Logrotate isn't going to work because the file is never re-set. Typically,
when you use LogRotate with something like apache you send a command to
re-start it.

In Unix, if you erase a file that's still open, that file will be removed
from the directory but it will exist and consume space until the application
closes it. The holding application can continue to put data in it. So, if
you want to reset catalina.out you need to re-start tomcat.

George Sexton
MH Software, Inc.
Voice: 303 438 9585

> -----Original Message-----
> From: Susan Richards []
> Sent: Friday, August 14, 2009 9:38 AM
> To: Tomcat Users List
> Subject: Re: Clearing the catalina.out file
> If I had time to learn how logrotate works I wouldn't need to post to
> the list and waste your time, but if you're going to reply to a
> question, why answer only part of it?  If you know the answer, why
> spend the time telling me to try it out?  I will have learned either
> way and won't have to ask again.  Sorry.  I support many other
> applications and if you have time to explain how logrotate works, it's
> been on my to do list for a while.  I do appreciate the help.
> >>> Christopher Schultz <> 8/14/2009 10:23
> AM >>>
> Hash: SHA1
> Susan,
> On 8/14/2009 11:06 AM, Susan Richards wrote:
> > No, but I will do it with a test server first since no one knows the
> answer.
> It's not that nobody knows the answer: it's that actually /trying/ to
> do
> it takes less time than posting to the mailing list, it's kind of silly
> to have done it.
> BTW I would recommend using something like logrotate to archive your
> log
> files.
> - -chris
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla -
> iEYEARECAAYFAkqFgXwACgkQ9CaO5/Lv0PBk8gCgwnrzPLuLwS7bzPuUNeIfhcrO
> L/gAoLNqbffkITC+lirUCfGuORkfy6g0
> =Gh98
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message