On Thu, 2004-12-30 at 09:49, Ceki GÃlcà wrote:
> Hello Elias,
> 
> Currently,  the   sequence  counter  is   managed  per  copy   of  the
> LoggingEvent class.  If multiple  logging repositories share  the same
> log4j.jar  file, then  they will  share the  same sequence  counter. I
> suppose   the   sequence  counter   could   be   managed  per   logger
> repository. However, managing them per logger does not make any sense.
> If this is not obvious, think of appender additivity.

Yes, what I really meant was per repository.  I sort of assumed that
loggers belonging to the same "category" (e.g. "org.apache") would have
their own counter because having a JVM-wide lock like that would be
pretty unfortunate.

Has any of log4j been analyzed for thread contention?  I have used this
before and it works okay:

http://freshmeat.net/projects/contentionprofiler/

Java 5 also has some built in tools:

http://javalobby.com/forums/thread.jspa?threadID=16394


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to