Hi all,

We have an application that will be running a large number of theads (possibly 50) and currently we are using only a single Logger object across all these threads. I am wondering if this will lead to some performance issues (i.e. a thread waiting while another thread uses the logger) and would our logging performance improve if we had more logger objects.

I have read some other messages on the mailing list and currently I am of the opinion that increasing the number of logger objects will not improve performance. We only have a single appender (which writes to a file) and as the synchronisation is carried out on this appender object rather then the logger object then increasing the number of logger objects should not improve logging performance as each thread will still obtain a lock at the same point.

I have looked at the source code for the Logger class and it seems that the callAppenders method does lock the Logger object however I am not sure how this should influence my decision of whether or not to increase the number of loggers.

All help appreciated,
Tom

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to