Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A429F10263 for ; Sat, 29 Mar 2014 03:28:26 +0000 (UTC) Received: (qmail 34052 invoked by uid 500); 29 Mar 2014 03:28:25 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 33928 invoked by uid 500); 29 Mar 2014 03:28:25 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 33918 invoked by uid 99); 29 Mar 2014 03:28:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 03:28:25 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of boards@gmail.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 03:28:19 +0000 Received: by mail-ob0-f176.google.com with SMTP id wp18so6767423obc.7 for ; Fri, 28 Mar 2014 20:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Aimh5EpUqEr5z5DrioBahAO6m7iC+dgWeuL7Ig5Hnxs=; b=vt1aS3ONkQMSQpLVzjEDKjLjp3yBH32H76rwkiu2yLZnXhbGteIdi+yA9iEWLK2BOi l7glPiiGl3r/YI3x+uuuY6QNmjwWKVxJdYF/7ns8yMxCbnnVeM7IvXT3eLKD5Ws9k9Bl RrN1tw2dvrb5saORCrs9LFRqGhVq0I805liwLgRiESn1kSgTKSW6hX/FdDG8Z3vS4AbX 5ca872+NnpxlMAoGKOTzv12nU32ZPpE8nDDr2tVvWTkKtPN6X+vt2PWtmXhi94H7IU+G hQVUpKhkx0M7mqWUuRYbm9BXfppqdTn05sqUQujZ2bLUZwNGLGTJzbpyp1o2oMJTwSip X01w== MIME-Version: 1.0 X-Received: by 10.60.55.97 with SMTP id r1mr10024196oep.5.1396063679254; Fri, 28 Mar 2014 20:27:59 -0700 (PDT) Received: by 10.76.72.68 with HTTP; Fri, 28 Mar 2014 20:27:59 -0700 (PDT) In-Reply-To: References: Date: Fri, 28 Mar 2014 22:27:59 -0500 Message-ID: Subject: Re: Running disruptor async performance tests From: Matt Sicker To: Log4J Users List Content-Type: multipart/alternative; boundary=089e0115f08aaf989b04f5b6679e X-Virus-Checked: Checked by ClamAV on apache.org --089e0115f08aaf989b04f5b6679e Content-Type: text/plain; charset=UTF-8 Going to guess Remko has something useful to say on this, but since he's in Japan, just wait a bit for the timezones to make sense. On 28 March 2014 22:03, Rebecca Ahlvarsson wrote: > I am trying to run the async performance tests described on the link below > on my machine. > > > http://logging.apache.org/log4j/2.x/manual/async.html#Asynchronous_Logging_Performance > > I am not an expert with log4j, so here is how far I got after building > log4j with maven: > > java -cp > > target/classes:target/test-classes:lib/disruptor-3.2.1.jar:../log4j-api/target/classes > org.apache.logging.log4j.core.async.perftest.PerfTest > org.apache.logging.log4j.core.async.perftest.RunLog4j2 blah blah.log 1 > -verbose > > 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! > > -Becky > -- Matt Sicker --089e0115f08aaf989b04f5b6679e--