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 Jagadeesh G R <jr...@lightsurf.com> on 2002/11/12 21:01:29 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Interesting behavior with 2 JVM's

Posted by Jagadeesh G R <jr...@lightsurf.com>.
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. The file
sizes are going to 20MB also, where the max file size was 10MB, and in some
cases the size is too less then 10MB.

please help me by your suggestions.

Thanks
Jagadeesh G R


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>