You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2003/02/28 18:42:07 UTC
Question regarding two JVMs, one file
Howdy,
I have the following:
System A uses a log4j configuration file, which defines one file
appender.
System B uses the same log4j configuration file, so it's writing to the
same file appender.
System A is long-lived, typically weeks at a time. System B is
short-lived, typically runs once a day for about an hour. Whenever
System B is started, System A is already running and writing to the log
file.
It seems like System B starts up OK, reads and configuration file, and
starts writing to the same log file as System A. So far so good.
However, it also seems like when System B is done, it exits (the JVM
exits) properly, and then System A can no longer write to the log file.
System B does not explicitly shut down log4j, so I would expect System A
to continue to hold an open handle to the log file and keep writing to
it. Am I missing something? There are no exceptions in any of my logs
nor on the console.
Thanks in advance,
Yoav Shapira
Millennium ChemInformatics
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org
Re: Question regarding two JVMs, one file
Posted by Fergus Gallagher <Fe...@OrbisUK.com>.
What OS is this?
On Fri, Feb 28, 2003 at 12:42:07PM -0500, Shapira, Yoav wrote:
>
> Howdy,
> I have the following:
>
> System A uses a log4j configuration file, which defines one file
> appender.
> System B uses the same log4j configuration file, so it's writing to the
> same file appender.
>
> System A is long-lived, typically weeks at a time. System B is
> short-lived, typically runs once a day for about an hour. Whenever
> System B is started, System A is already running and writing to the log
> file.
>
> It seems like System B starts up OK, reads and configuration file, and
> starts writing to the same log file as System A. So far so good.
> However, it also seems like when System B is done, it exits (the JVM
> exits) properly, and then System A can no longer write to the log file.
>
> System B does not explicitly shut down log4j, so I would expect System A
> to continue to hold an open handle to the log file and keep writing to
> it. Am I missing something? There are no exceptions in any of my logs
> nor on the console.
>
> Thanks in advance,
>
> Yoav Shapira
> Millennium ChemInformatics
>
>
>
>
>
> This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
--
Fergus Gallagher Tel: +44 (20) 8742 1600
Orbis Fax: +44 (20) 8742 2649
414 Chiswick High Street email: Fergus.Gallagher@orbisuk.com
London W4 5TL Web: http://www.orbisuk.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org