tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Clearing the catalina.out file
Date Fri, 14 Aug 2009 19:03:23 GMT
> From: George Sexton [mailto:georges@mhsoftware.com]
> Subject: RE: Clearing the catalina.out file
> 
> rm catalina.out

Which is an unlink, not an erase; all the suggestions so far have been for truncation.

An inode and its associated data blocks are never discarded until the busy count goes to zero
regardless of the link count; this means it hangs around until everyone using it has done
a close().  For stdout, that won't happen until the process terminates or explicit calls are
made to fiddle with it.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

Mime
View raw message