tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Clearing the catalina.out file
Date Mon, 24 Aug 2009 15:01:16 GMT
Hash: SHA1


On 8/14/2009 2:42 PM, George Sexton wrote:
>> Sure it will. Check the "copytruncate" option.
> That's an interesting option. It seems fraught with danger, but I
> tested it and it does work.

Yes, it is fraught with danger. But, if you want to use stdout/stderr
and refuse to take other steps, it's basically what you're left with.

>> What part of that doesn't work?
> The part about new data appearing. On one of my production servers, I
> erased catalina.out.

Note that truncation and deletion are not the same.

> I then invoked a JSP that generated output to
> system.out. The file catalina.out did not magically appear.

Of course not: you're writing to a valid file handle whose directory
entry has been unlinked. Why would the file magically reappear?

> No data
> was magically written to the file. I went into proc for the PID for
> JSVC, and looked at the File Descriptors. Sure enough, if I look in
> the FD directory, FD 1 shows deleted. If I examine the contents of
> the file descriptor, the test data is appended to the end of the
> file.

Sounds right to me.

> It doesn't work.

What you tried doesn't work. I didn't suggest what you tried.

> I make these statements because I know what I
> observe. I've also been using Linux since something like 1997 so I've
> got a fair amount of experience there too.

So, your straw man has a big swingin' tool, too?

> Perhaps we observe different results because I'm using JSVC.

No, we observe different results because we're doing different things.

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


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

View raw message