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 Jo...@wellsfargo.com on 2005/03/02 22:42:19 UTC
single log file with multiple JVMs vs. multiple class loaders
Hi all,
I'm aware of the problems with more than 1 jvm trying to write to 1 file,
but what about multiple class loaders? In my j2ee app we have 2 ears, one
of which contains a war. They all use the same log4j config. They're
deployed to WebLogic 8.1. There appears to be only 1 java.exe on my machine
(XP Pro), which I believe is for WebLogic, regardless of whether I deploy
both ears or just 1. (Might that vary by OS or java implementation?) That
makes me think there's just 1 process writing to the file. However, I think
log4j is being configured more than once because I see our wrapper class get
loaded more than once. Would this cause the same kind of interleaving
problems that multiple processes will? I haven't seen any yet, but we
haven't started testing heavily yet, either.
thanks
John Gregg
Application Systems Engineer
Wells Fargo Private Client Services Technology
Re: single log file with multiple JVMs vs. multiple class loaders
Posted by Jacob Kjome <ho...@visi.com>.
Where do you have log4j.jar? Where is the config file you think is being used?
Do you have the optional child-first classloading behavior enabled for webapps
or not?
Jake
Quoting John.E.Gregg@wellsfargo.com:
> Hi all,
>
> I'm aware of the problems with more than 1 jvm trying to write to 1 file,
> but what about multiple class loaders? In my j2ee app we have 2 ears, one
> of which contains a war. They all use the same log4j config. They're
> deployed to WebLogic 8.1. There appears to be only 1 java.exe on my machine
> (XP Pro), which I believe is for WebLogic, regardless of whether I deploy
> both ears or just 1. (Might that vary by OS or java implementation?) That
> makes me think there's just 1 process writing to the file. However, I think
> log4j is being configured more than once because I see our wrapper class get
> loaded more than once. Would this cause the same kind of interleaving
> problems that multiple processes will? I haven't seen any yet, but we
> haven't started testing heavily yet, either.
>
> thanks
>
>
> John Gregg
> Application Systems Engineer
> Wells Fargo Private Client Services Technology
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org