-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tsirkin,
On 8/16/2009 3:19 AM, Tsirkin Evgeny wrote:
> echo -n > catalina.out
This is not a truncation: this is a file replacement.
In bash, the command '>' truncates a file, it doesn't redirect "nothing"
to it. It's a special case of the IO redirec
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
George,
On 8/14/2009 3:21 PM, George Sexton wrote:
> Here's what I originally wrote and Chris responded to:
>
>> 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
>> un
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
George,
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
Tsirkin Evgeny wrote:
..
I'm no expert in these matters either, so I am a bit bemused about what
is going on also, but to abound maybe on what Evgeny is writing :
I happened to be following this thread and taking notes.
I also happened to have a similar issue, with Apache httpd, not Tomcat :
U
, and that works too.
>
> George Sexton
> MH Software, Inc.
> http://www.mhsoftware.com/
> Voice: 303 438 9585
>
>
> > -Original Message-
> > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> > Sent: Friday, August 14, 2009 12:46 PM
>
> From: George Sexton [mailto:geor...@mhsoftware.com]
> Subject: RE: Clearing the catalina.out file
>
> You'll note that what I wrote about erasing files is exactly
> in line with what you just wrote.
I think the confusion lies with the use of the ambiguous term "erase&q
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
> -Original Message-
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> Sent: Friday, August 14, 2009 1:03 PM
> To: Tomcat Users List
> Subject: RE: Clearing the catalina.out file
>
> > From: Georg
> From: George Sexton [mailto:geor...@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
Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
> -Original Message-
> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
> Sent: Friday, August 14, 2009 12:46 PM
> To: Tomcat Users List
> Subject: RE: Clearing the catalina.out file
>
> > From: George Sex
> From: George Sexton [mailto:geor...@mhsoftware.com]
> Subject: RE: Clearing the catalina.out file
>
> On one of my production servers, I erased catalina.out.
Exactly how? What's been under discussion here is a truncation operation, not
an unlink.
- Chuck
THIS COMMUNIC
Chris,
> -Original Message-
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Friday, August 14, 2009 10:59 AM
> To: Tomcat Users List
> Subject: Re: Clearing the catalina.out file
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
&
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
George,
On 8/14/2009 12:48 PM, George Sexton wrote:
> 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.
Sure it will. Check the "copytru
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Susan,
On 8/14/2009 11:37 AM, Susan Richards wrote:
> 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?
Logrotate's operati
ds [mailto:richa...@matc.edu]
> 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
On Fri, Aug 14, 2009 at 11:23, Christopher
Schultz wrote:
> -BEGIN PGP SIGNED MESSAGE-
> 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 tha
Susan,
> 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'
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
-BEGIN PGP SIGNED MESSAGE-
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
Susan,
Tomcat does not lock the file, since it is write only, clearing it has no
impact on the service.
I recall having a catalina.out that reached 4GB withon the hour due to a
read only filesystem.
Clearing it while it is running had no impact.
Googling also tends to be helpful...
HTH
Regards,
No, but I will do it with a test server first since no one knows the answer.
>>> Christopher Schultz 8/14/2009 9:47 AM >>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Susan,
On 8/14/2009 10:19 AM, Susan Richards wrote:
> What about stopping the web server? Required? Thanks for the answers.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Susan,
On 8/14/2009 10:19 AM, Susan Richards wrote:
> What about stopping the web server? Required? Thanks for the answers.
This seems like an easy thing to just try. Have you?
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
What about stopping the web server? Required? Thanks for the answers.
>>> Serge Fonville 8/14/2009 9:13 AM >>>
> catalina.out
Why type more ;-)
HTH
Serge
On Fri, Aug 14, 2009 at 3:58 PM, Dan Denton wrote:
> "echo "" > catalina.out" (without the outside quotes) works for us.
>
> Dan
>
> ---
> catalina.out
Why type more ;-)
HTH
Serge
On Fri, Aug 14, 2009 at 3:58 PM, Dan Denton wrote:
> "echo "" > catalina.out" (without the outside quotes) works for us.
>
> Dan
>
> -Original Message-
> From: Susan Richards [mailto:richa...@matc.edu]
> Sent: Friday, August 14, 2009 8:53 AM
>
"echo "" > catalina.out" (without the outside quotes) works for us.
Dan
-Original Message-
From: Susan Richards [mailto:richa...@matc.edu]
Sent: Friday, August 14, 2009 8:53 AM
To: users@tomcat.apache.org
Subject: Clearing the catalina.out file
Do I need to stop the web server in order
24 matches
Mail list logo