Jagadeesh,

It is generally a bad idea to have 2 different instances of log4j reference
the same configuration files.  As you are seeing, they conflict and
interfere with each other regarding output files, etc.  If you had
SocketAppenders defined, they would conflict on port numbers, etc.  Not a
good thing.

I would recommend having your logj4 instances reference different
configuration files, each with their own set of output files and see how far
that gets you.

-Mark

> -----Original Message-----
> From: Jagadeesh G R [mailto:jreddy@;lightsurf.com]
> Sent: Tuesday, November 12, 2002 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: Interesting behavior with 2 JVM's
> 
> 
> 
> Hi All,
> 
>       I am using log4j with apache/resin as my server. I am 
> running 2 instances
> of Resin on a dual proc sun machine for performance reasons.
> 
>       both my instances of resin points to the same set of 
> Log4j configuration
> file.
> 
> here are my Observations :
> 
> 1.
> using the appender 
> "org.apache.log4j.DailyRollingFileAppender", where one
> JVM renames the current file and start's writing  into a new 
> file, and the
> other JVM truncates the renamed file and starts writing into 
> that, so we are
> loosing all our previous day data.
> 
> 2.
> using the appender "org.apache.log4j.RollingFileAppender" some times I
> observed 3 files being written parallely. the log's were 
> getting distributed
> to 3 files, And the sizes of the old log  files are not 
> consistent. This is
> happening in ruby too. the files are going to 20MB also, 
> where the max file
> size was 10MB, and in some cases the size is too less then 10MB.
> 
> please tell me what is the best possible solution to take care of this
> problem.
> 
> Thanks
> Jagadeesh G R
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:log4j-user-help@;jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@;jakarta.apache.org>

Reply via email to