tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kerber <dcker...@verizon.net>
Subject Re: Log files always locked
Date Wed, 02 May 2007 19:09:05 GMT
Johnny Kewl wrote:

> Thanks... does the trick.
> But still wondering why the file handles are left open... I would 
> think its
> not good practice.

I would assume for performance reasons, but that's just a guess.  I do 
the same thing when I know I'm going to be doing a lot of writing, but 
if there are only going to be occasional writes, then I close it every time.

>
>
> ----- Original Message ----- From: "Venkat Venkataramanan" 
> <thevenkster@gmail.com>
> To: "'Tomcat Users List'" <users@tomcat.apache.org>
> Sent: Wednesday, May 02, 2007 8:45 PM
> Subject: RE: Log files always locked
>
>
>> Johnny:
>>
>> I use Textpad to open the log file; if the log file is updated, it will
>> automatically update the screen. Try that.
>>
>> -----Original Message-----
>> From: Johnny Kewl [mailto:john@kewlstuff.co.za]
>> Sent: Wednesday, May 02, 2007 2:34 PM
>> To: Tomcat Users List
>> Subject: Log files always locked
>>
>> Just something that bugs me.....
>> On windows if you try open a tomcat log file... which are typically
>> associated with something like notepad, you get "In Use By Another
>> Program".
>> Why does Tomcat lock the file handle indefinitely?
>> It maybe good programming practice but windows utilities generally dont
>> give
>> one the option of "will open as read only"... its always a mission 
>> just to
>> read a log file.
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message