<div dir="ltr"><div><div class="gmail_signature"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)">I am facing one strange issue and not able to find the solution.  Issue is logs are not written when testing with high performance. I am using logback - syslog in apache karaf container.</span></div><div>In normal scenario, everything works fine, but when i change the log level to debug and try to do some performance tests, logs write is stopped at some point and it never writes.</div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)">The issue is happening because of the logging framework. We are using Syslog logging framework, which actually writes the logs to the socket and later that would write to a file.</span><br></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)">In this particular scenario, after a particular time, the logs have been stopped writing  but can see that there are sockets open which are waiting to write the logs to the file.</span><br></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)">Any solution or pointers to resolve the issue would be very helpful.</span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><b>O/P of netstat -p command showed 151 connections in CLOSE_WAIT state: </b></span><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)">........................................................................................................</span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 1 0 <a href="http://172.30.2.144:39830">172.30.2.144:39830</a> 172.30.2.144:pcsync-https CLOSE_WAIT 3513/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 1 0 <a href="http://172.30.2.144:39965">172.30.2.144:39965</a> 172.30.2.144:pcsync-https CLOSE_WAIT 3513/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 1 0 <a href="http://172.30.2.144:42245">172.30.2.144:42245</a> 172.30.2.144:pcsync-https CLOSE_WAIT 3513/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 1 0 <a href="http://172.30.2.144:42416">172.30.2.144:42416</a> 172.30.2.144:pcsync-https CLOSE_WAIT 3513/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:41277 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:44855 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:41891 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:43136 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:42733 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:41580 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:44162 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:45270 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:43482 localhost:pcsync-https CLOSE_WAIT 3640/java </span><br style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">tcp 0 0 localhost:43192 localhost:pcsync-https CLOSE_WAIT 3640/java </span><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px">..................................................................................................................</span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><b>logback.xml</b></span></div><div><span style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><br></span></div><div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px"><configuration></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px"> ........................................................</span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    <appender name="karaf" class="ch.qos.logback.classic.net.SyslogAppender"></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <facility>LOCAL1</facility></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <syslogHost>localhost</syslogHost></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <suffixPattern>karaf: [%thread] %logger{36} - %msg%n</suffixPattern></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    </appender></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    <appender name="shared" class="ch.qos.logback.classic.net.SyslogAppender"></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <facility>LOCAL1</facility></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <syslogHost>localhost</syslogHost></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <suffixPattern>shared: [%thread] %logger{36} - %msg%n</suffixPattern></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    </appender></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    <appender name="css2" class="ch.qos.logback.classic.net.SyslogAppender"></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <facility>LOCAL1</facility></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <syslogHost>localhost</syslogHost></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">        <suffixPattern>css2: [%thread] %logger{36} - %msg%n</suffixPattern></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    </appender></span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px">    ......................................................</span></font></div><div style><font color="#000000" face="Arial, FreeSans, Helvetica, sans-serif"><span style="line-height:17.0001010894775px"></configuration></span></font></div><div style="color:rgb(0,0,0);font-family:Arial,FreeSans,Helvetica,sans-serif;font-size:13px;line-height:17.0001010894775px"><br></div></div></div></div></div>
</div>