logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rebecca Ahlvarsson <rahlvars...@gmail.com>
Subject Running disruptor async performance tests
Date Sat, 29 Mar 2014 03:03:10 GMT
I am trying to run the async performance tests described on the link below
on my machine.


I am not an expert with log4j, so here is how far I got after building
log4j with maven:

java -cp
org.apache.logging.log4j.core.async.perftest.RunLog4j2 blah blah.log 1

Then I get this in the output:

avg=17 99%=32 99.99%=64 sampleCount=5000000
9962247 operations/second

The questions I have are:

1. It looks like the source code IPerfTestRunner uses a much shorter
message "Short Msg" instead of the 500 characters message stated in the
link above. Is that intentional or is it a bug? Do we want to test the
latency with the 500-character message or just a short message?

2. I notice that my logs are NOT going to any file. I am probably
misconfiguring something with log4j. How do I generate a file with the
messages from the performance test?

3. I just want to test with one asynchronous logging thread, so I am
passing threadCount 1 above. What does the second parameter 'blah' mean?

4. Not sure why I get operations/seconds if I am not passing -throughput in
the command-line. I just want to get the latency numbers for now. After
that I will worry about throughput.

So basically I just want to run the same test you run to see those great
numbers on my production machine.

Thanks for the help!


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message