At 01:53 AM 9/23/2004, Elias Ross wrote:
Single lock strategy: (current one)
Thread 1 --> Appender --> Database.insert Thread 2 --> (wait)
This tends to create bottlenecks if two threads are logging at the same time.
Concurrent strategy:
Thread 1 --> Appender --> Database.insert Thread 2 --> Appender --> Database.insert
This has an advantage on multiprocessor machines or when the database can handle inserts simultaneously.
How can you write events concurrently from two distinct threads to the same file and expect coherent output?
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
