You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2019/05/21 01:24:27 UTC
[GitHub] [logging-log4j2] carterkozak commented on issue #269: LOG4J2-2609:
Implement Synchronous AsyncQueueFullPolicy
carterkozak commented on issue #269: LOG4J2-2609: Implement Synchronous AsyncQueueFullPolicy
URL: https://github.com/apache/logging-log4j2/pull/269#issuecomment-494204519
I may not end up committing the synchronous policy because it's not terribly helpful outside of testing. If we (carefully) synchronize around the enqueue operation we can get more throughput, avoid poorly ordered events, and avoid creating thread-local buffers outside of the background thread:
```
Benchmark (queueFullPolicy) Mode Cnt Score Error Units
ConcurrentAsyncLoggerToFileBenchmark.concurrentLoggingThreads ENQUEUE thrpt 3 1302070.388 ± 713643.057 ops/s
ConcurrentAsyncLoggerToFileBenchmark.concurrentLoggingThreads SYNCHRONOUS thrpt 3 1151360.276 ± 99047.131 ops/s
ConcurrentAsyncLoggerToFileBenchmark.singleLoggingThread ENQUEUE thrpt 3 1330328.259 ± 749542.377 ops/s
ConcurrentAsyncLoggerToFileBenchmark.singleLoggingThread SYNCHRONOUS thrpt 3 1381320.895 ± 507036.686 ops/s
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services