2013/10/25 Internet Lösungen für Klein & Gross <[email protected]>:
>
>
>
>> On Fri, Oct 25, 2013 at 1:33 AM, Web2 Solutions 
>> <[email protected]>wrote:
>>
>> > Hallo All,
>> >
>> > I've installed tomcat 7.0.42 and due heavy use my catalina.out and
>> > localhost_access-jjj-mm-dd.txt grows quit big.
>> >
>> > I've successfully configured logrotate to rotate both files. I've removed
>> > the date from the access log.
>> > So Tomcat now writes without rotating into localhost_access.txt
>> >
>> > Logrotate now create a new file (localhost_access-dd-mm-dd.**txt) and
>> > makes localhost_access.txt empty.
>> > But tomcat now writes into the new localhost_access-dd-mm-dd.txt instead
>> > of the configured file (localhost_access.txt).
>> >
>> > What do I have todo so that tomcat continues to write into
>> > localhost_access.txt  even after rotating?
>> >
>> > ------------------------------**------------------------------**---------
>> > To unsubscribe, e-mail: 
>> > users-unsubscribe@tomcat.**apache.org<[email protected]>
>> > For additional commands, e-mail: [email protected]
>>
>>
>> Hi,
>>
>> Have you configured logrotate with "olddir" parameter? With this parameter
>> logs will be moved to specified directory.
>>
>> Thank you,
>>
> Hi,
> thank you for your reply. No I don't have that option active.
> Tomcats seems to have a pointer to the log-files.
> So after renaming or move it still writes in them. Is that correct? If so 
> another folder will not help!?

Yes, it won't help.

Likewise, deleting the file wouldn't help. It can continue writing to
the file as long as it keeps it open.
(E.g. explained in "man unlink"
http://linux.die.net/man/2/unlink
)

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to