<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">
<div style="font-size: 14px;">Hi,</div>
<div style="font-size: 14px;">We have a SpringBoot app that uses Logback. It uses Async appender and configured as this:</div>
<div>
<pre style="background-color: rgb(255, 255, 255); font-family: Menlo;"><span style="font-size: 12px;"><span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">appender </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">name</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">="ASYNC" </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">class</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">="ch.qos.logback.classic.AsyncAppender"</span><span style="background-color: rgb(239, 239, 239);">></span><br>    <span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">queueSize</span><span style="background-color: rgb(239, 239, 239);">></span>10000<span style="background-color: rgb(239, 239, 239);"></</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">queueSize</span><span style="background-color: rgb(239, 239, 239);">></span><br>    <span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">discardingThreshold</span><span style="background-color: rgb(239, 239, 239);">></span>0<span style="background-color: rgb(239, 239, 239);"></</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">discardingThreshold</span><span style="background-color: rgb(239, 239, 239);">></span><br>    <span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">appender-ref </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">ref</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">="FILE" </span><span style="background-color: rgb(239, 239, 239);">/></span><br><span style="background-color: rgb(239, 239, 239);"></</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">appender</span><span style="background-color: rgb(239, 239, 239);">></span><br><br><span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">root </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">level</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">="INFO"</span><span style="background-color: rgb(239, 239, 239);">></span><br>    <span style="background-color: rgb(239, 239, 239);"><</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">appender-ref </span><span style="color: rgb(0, 0, 255); background-color: rgb(239, 239, 239); font-weight: bold;">ref</span><span style="color: rgb(0, 128, 0); background-color: rgb(239, 239, 239); font-weight: bold;">="ASYNC" </span><span style="background-color: rgb(239, 239, 239);">/></span><br><span style="background-color: rgb(239, 239, 239);"></</span><span style="color: rgb(0, 0, 128); background-color: rgb(239, 239, 239); font-weight: bold;">root</span><span style="background-color: rgb(239, 239, 239);">></span></span><span style="font-size: 12pt;"><br></span></pre>
</div>
<div style="font-size: 14px;">
<div>
<div style="font-size: 15px; margin: 0px;">The app (single instance) is configured to have up to 200 Jetty threads. Throughput is around 50 POSTs/sec. I find there are 2-4 minute gaps in messages logged after 30 minutes. The gaps appear every 20 to 30 minutes.
 Am I missing additional configurations? Also is Async appender the best way to go if logging fidelity is of high importance? If not what is the best configuration so not to lose any messages. Thanks in advance.</div>
<div style="font-size: 15px; margin: 0px;"><font style="font-size: 11pt;"><b><font face="Calibri" color="#3038f7" style="background-color: rgb(255, 254, 254);">____________________________________________________</font></b></font><b><font face="Calibri" color="#3038f7" style="background-color: rgb(255, 254, 254);">___</font></b><b><font face="Calibri" color="#3038f7" style="background-color: rgb(255, 254, 254);">_</font></b></div>
<div style="background-color: rgb(255, 255, 255); margin: 0px;"><b><font face="Calibri" color="#0433ff"><span style="font-size: 15px;">MARCUS CHEN</span></font> – Senior Developer, AWS Certified Developer Associate</b></div>
<p style="margin-top: 0px; margin-bottom: 0px; background-color: rgb(255, 255, 255);">
</p>
<div style="background-color: rgb(255, 255, 255); margin: 0px;"><font style="font-family: Calibri; font-size: 11pt;" color="#0433ff"><span style="font-size: 14px;"><a href="mailto:marcus.chen@dev9.com">marcus.chen@dev9.com</a></span><a href="mailto:marcus.chen@dev9.com"> </a></font><font style="font-family: Calibri; font-size: 11pt;">|</font><font style="color: rgb(33, 33, 33); font-family: Calibri; font-size: 11pt;"> dev9.com</font></div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); margin: 0px;">
<font style="font-size: 11pt;"><font color="#636466" face="Calibri">Custom Software. Continuous Delivery.</font></font></div>
</div>
<br>
</div>
</body>
</html>