<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div></div><div><span>Sounds similar to: &nbsp;<a target="_blank" href="http://lists.jboss.org/pipermail/netty-users/2010-January/001856.html">http://lists.jboss.org/pipermail/netty-users/2010-January/001856.html</a></span><br>&nbsp;</div>--<br>Rob Grzywinski<div><br></div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">To:</span></b> netty-users@lists.jboss.org<br></font><b><br></b>
I fired up the HTTP "snoop" example from the Netty source as follows:<br>MAVEN_OPTS="-verbose:gc" mvn<br>-Dexec.mainClass=org.jboss.netty.example.http.snoop.HttpServer<br>-Dmaven.test.skip=true compile -Dskip-enforce=true exec:java<br><br>Then got ApacheBench to hit it with 15,000 requests at a concurrency of 800<br>as so:<br><span>ab -c 800 -n 15000 <a target="_blank" href="http://localhost:8080/test">http://localhost:8080/test</a></span><br><br>This tends to result in either ApacheBench exiting early with:<br>apr_socket_recv: Connection reset by peer (104)<br>Total of 14991 requests completed<br><br>Or it succeeding but with a really bad 99th percentile performance:<br>Percentage of the requests served within a certain time (ms)<br>&nbsp; 50%&nbsp; &nbsp; &nbsp; 8<br>&nbsp; 66%&nbsp; &nbsp; &nbsp; 8<br>&nbsp; 75%&nbsp; &nbsp; &nbsp; 8<br>&nbsp; 80%&nbsp; &nbsp; &nbsp; 9<br>&nbsp; 90%&nbsp; &nbsp;  14<br>&nbsp; 95%&nbsp; &nbsp;  21<br>&nbsp; 98%&nbsp;
 &nbsp;  53<br>&nbsp; 99%&nbsp;  3017<br> 100%&nbsp;  4813 (longest request)<br><br>In some cases the 99% and upwards can be over 10 seconds.<br><br>Is there something wrong with that example code that can be fixed? Netty has<br>interested me for a particularly high performance service that I'm working<br>on, but those numbers are worrying me somewhat that under really high load<br>it might get a few orders of magnitude worse.<br><br>--<br><span>View this message in context: <a target="_blank" href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HTTP-Snoop-example-breaks-under-not-very-much-stress-tp6458056p6458056.html">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HTTP-Snoop-example-breaks-under-not-very-much-stress-tp6458056p6458056.html</a></span><br>Sent from the Netty User Group mailing list archive at <a target="_blank"
 href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>netty-users mailing list<br><a ymailto="mailto:netty-users@lists.jboss.org" href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></div></div><div style="position:fixed"></div>


</div></body></html>