<div>Thanks for getting back Tristan.</div><div><div><font class="Apple-style-span" color="#6E6E6E" face="TeXGyreHerosRegular"><span class="Apple-style-span" style="font-size: 14px; line-height: 19px;"><br></span></font></div>

</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":3c">JVM does not return unused memory to the OS very well as far as I know.<br>


 To measure the actual amount of memory being used, you have to get the<br>
values from Runtime.<br></div></blockquote><div><br></div><div>I need to setup VisualVM to see what is going on. I&#39;ve been having some issues with jstatd showing up remotely. I&#39;ll sort it out. The documentation could be much better; I might have to go the JMX route :/</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":3c">Yes, Java needs warm-up.  You can specify some HotSpot options when you<br>
launch your VM to make compilation occur earlier or later, though.<br></div></blockquote><div><br></div><div>Do you have particular recommendations for Netty? I would love to see the appropriate GC, etc JVM flag recommendations to tune it for many concurrent connections + executors. Especially if anyone has done any real significant tuning and documented this, it would be great for the community.</div>

<div><br></div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":3c">
I&#39;m not sure why CPU doesn&#39;t go down to 0~1% when there&#39;s no connection<br>
to manage though.  Let me try to reproduce the problem.  Please let me<br>
know if you find something meanwhile.<br></div></blockquote><div><br></div><div><br></div><div>It did eventually go down. Very odd that it takes SOO long to do. I need to inspect in VisualVM to see what&#39;s happening. I&#39;ve been going through your code a bit and getting a slightly better understanding of how these executors work.</div>

<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":3c">I think so.  Practically, any connection attempt can fail, so the client<br>

must be prepared to reconnect on failure.<br>
<br></div></blockquote><div><br></div><div>This seems very strange to me. When I ssh into one of my boxes, or when I go to Google&#39;s homepage, I do not get a connection drop (as far as I can tell). I suppose I have some ignorance of the &quot;ops&quot; nature of high-end sites, but I feel like this number should be well under 1%. While I haven&#39;t opened up wireshark and tallied the TCP states and what&#39;s going on (yet), considering this is localhost&lt;--&gt;localhost what could possibly be causing this? A weakness in NIO? Could something be tuned/implemented differently?</div>

<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":3c">By the way, it would pre pretty interesting to see an MIT media lab<br>
project uses Netty.  Please let us know when it happens! :-)<br>
<br></div></blockquote><div><br></div><div>Hahah this is an outside contract, unfortunately. I&#39;m actually using Jetty for my main thesis project as it is REST-based, and Jetty has been good for this. I&#39;d be curious to know how Netty&#39;s performance compares in this scenario, and if there are any frameworks to make this easier. I was coming from Tornado in Python which is a dream webstack, and would love to see something like this available in Java/Scala (ideally Scala). JAX-RS is quite close, but it took a bit of fiddling to figure out how to get Jetty properly embedded. All these WAR files, web.xml, etc is too much for the average website / web developer. It should be much easier. Tornado&#39;s biggest strength is it&#39;s small code base size, which is easily understandable.</div>

<div><br></div><div>Aaron</div></div><div><meta charset="utf-8"><div><div><span style="font-family: TeXGyreHerosRegular; font-size: 14px; color: rgb(110, 110, 110); line-height: 19px; "><br></span></div><div><span style="font-family: TeXGyreHerosRegular; font-size: 14px; color: rgb(110, 110, 110); line-height: 19px; ">--</span></div>

<div><span style="color: rgb(110, 110, 110); line-height: 19px; "><font face="tahoma, sans-serif">aaron zinman :: mit media lab :: <a href="http://web.media.mit.edu/~azinman" target="_blank">http://web.media.mit.edu/~azinman</a> :: <a href="http://protocol.by/azinman" target="_blank">protocol.by/azinman</a></font></span></div>

</div></div><div><span style="color: rgb(110, 110, 110); line-height: 19px; "><br></span></div>