Replies: 3 comments 1 reply
-
Hi,Do you have any suggestions for me? Thanks. |
Beta Was this translation helpful? Give feedback.
-
You'll need to ask @remkop, he's the expert. Generally those figures seem a little bit low for me. On my 5 years old laptop I obtain around 700k ops/second with sync logging and a All the figures on our website were obtained on UNIXes, which have a different file access semantics. Try using other appenders. |
Beta Was this translation helpful? Give feedback.
-
I use includeLocation="false", I just want to test the RollingRandomAccess File Appender and Loggers all asynchronous. Can I take a look at your log4j2.xml configuration file? |
Beta Was this translation helpful? Give feedback.
-
Throughput performance test running the MultiThreadPerfTest and PerfTest.
java -Dlog4j.configurationFile=log4j2.xml -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector org.apache.logging.log4j.core.async.perftest.PerfTest org.apache.logging.log4j.core.async.perftest.RunLog4j2
java -Dlog4j.configurationFile=log4j2.xml -DLog4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector org.apache.logging.log4j.core.async.perftest.MultiThreadPerfTest org.apache.logging.log4j.core.async.perftest.RunLog4j2
The throughput performance results below:
Loggers all asynchronous,Throughput per thread in messages/second.
On windows11 (64bit) with OpenJDK11
CPU: AMD Ryzen 5 [email protected] 6core,12thread.
MEM: 3600 32GB(16X2 )
SSD: WD SN570 512GB
Why is there such a big difference in my test results? Is it my configuration error that caused it?
https://logging.apache.org/log4j/2.x/manual/async.html
Beta Was this translation helpful? Give feedback.
All reactions