<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    I measured a similar setup quite a few years ago. Logback did not
    even exist then, we used our own simple logging library. The
    measured software was a server which received messages on several
    TCP connections, did some calculation, most of the time it cached
    the result, but eventually it saved results to a MySQL database.
    There was one log entry per message (similarly to an HTTP access
    log)., about 50-100 log entries per second. I found that unbuffered
    logging reduced the throughput of the server drastically, by 30%. On
    the other hand, if buffering was switched on then the performance
    impact was negligible. I measured it on Windows XP with a standard
    desktop hard disk, likely some WD PATA 7200 RPM drive. <br>
    <br>
    I believe that logging 1000 or more entries is practically
    impossible if flushing is switched off. A single hard disk may do a
    few hundred IO operation / s. Even if repeatedly appending to the
    same file is a quick operation, this is simply too much. Maybe if
    you have a battery backed SAS controller, that could help, in that
    case the controller itself could buffer writes, but I am just
    thinking, I have absolutely no experience with this. It is clear
    that you need some kind of buffering. I am not sure, however, if all
    kind of buffering was eliminated from logback or just one type. I am
    sure Ceki will give us the answer.<br>
    <br>
    <br>
    <br>
    On 2010.10.22. 22:59, <a class="moz-txt-link-abbreviated" href="mailto:Kenneth.Lam@barclayscapital.com">Kenneth.Lam@barclayscapital.com</a> wrote:
    <blockquote
cite="mid:5319F993D4AE1B458C2190F6CC2C2DD80117199247@NYKPCMMGMB07.INTRANET.BARCAPINT.COM"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:#606420;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
      <div class="Section1">
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">Hi,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;">We&#8217;re looking
              to use Logback with one of our services
              to aid in metrics recording. &nbsp;I&#8217;ve noticed that the
              ability to use
              any form of buffered IO with the FileAppender class was
              removed.&nbsp; The
              reason cited was that significant performance testing
              showed little benefit in
              doing so.&nbsp; I was wondering if anybody could provide more
              detail concerning
              the environment and conditions that this testing was done.
              &nbsp;We will
              generally be logging entries on the order of 1000&#8217;s to
              10,000&#8217;s entries
              per second. &nbsp;Does anybody know if Logback can handle this
              type of loading?&nbsp;
              Thanks.<o:p></o:p></span></font></p>
      </div>
      <font face="Arial" size="2">
      </font>
      <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
          style="font-size: 11pt;"><font face="Arial" size="2"><font
              face="Times New Roman">_______________________________________________<o:p></o:p></font></font></span></p>
      <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
          style="font-size: 11pt;"><o:p><font face="Arial" size="2"><font
                face="Times New Roman">&nbsp;</font></font></o:p></span></p>
      <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
          style="font-size: 11pt;"><font face="Arial" size="2"><font
              face="Times New Roman">This e-mail may contain information
              that is confidential, privileged or otherwise protected
              from disclosure. If you are not an intended recipient of
              this e-mail, do not duplicate or redistribute it by any
              means. Please delete it and any attachments and notify the
              sender that you have received it in error. Unless
              specifically indicated, this e-mail is not an offer to buy
              or sell or a solicitation to buy or sell any securities,
              investment products or other financial product or service,
              an official confirmation of any transaction, or an
              official statement of Barclays. Any views or opinions
              presented are solely those of the author and do not
              necessarily represent those of Barclays. This e-mail is
              subject to terms available at the following link: </font></font></span><span
          style="font-size: 10pt; color: navy; font-family: Arial;"
          lang="EN-GB"><font face="Arial" size="2"><a
              moz-do-not-send="true"
              href="http://www.barcap.com/emaildisclaimer">www.barcap.com/emaildisclaimer</a>.
          </font></span><span style="font-size: 11pt;"><font
            face="Arial" size="2"><font face="Times New Roman">By
              messaging with Barclays you consent to the foregoing.<span
                style="">&nbsp; </span>Barclays Capital is the investment
              banking division of Barclays Bank PLC, a company
              registered in <st1:place w:st="on"><st1:country-region
                  w:st="on">England</st1:country-region></st1:place>
              (number 1026167) with its registered office at <st1:address
                w:st="on"><st1:street w:st="on">1 Churchill Place</st1:street>,
                <st1:city w:st="on">London</st1:city>, <st1:postalcode
                  w:st="on">E14 5HP</st1:postalcode></st1:address>.<span
                style="">&nbsp; </span>This email may relate to or be sent
              from other members of the Barclays Group.<i style=""><o:p></o:p></i></font></font></span></p>
      <p class="MsoNormal" style="margin: 0in 0in 0pt;"><span
          style="font-size: 11pt;"><font face="Arial" size="2"><font
              face="Times New Roman">_______________________________________________</font></font></span></p>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Logback-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a>
<a class="moz-txt-link-freetext" href="http://qos.ch/mailman/listinfo/logback-user">http://qos.ch/mailman/listinfo/logback-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>