Unfortunately, the thread thrashing re-appears even with the latest version of Sun's JDK6. So, I'm considering this a Restlet bug and will continue investigating.
Using a recent Restlet svn build (a few days after 2.0M4). Here is the stack trace of the evil thread, in case anyone would like to lend their brain to the task: org.restlet.engine.application.RangeInputStream.read(RangeInputStream.java:149) java.io.FilterInputStream.read(FilterInputStream.java:90) org.restlet.engine.io.ByteUtils.write(ByteUtils.java:506) org.restlet.engine.application.RangeRepresentation.write(RangeRepresentation.java:86) org.restlet.engine.http.HttpServerCall.writeResponseBody(HttpServerCall.java:492) org.restlet.engine.http.HttpServerCall.sendResponse(HttpServerCall.java:150) org.restlet.ext.jetty.JettyServerHelper$WrappedServer.handle(JettyServerHelper.java:184) org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539) org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520) -Tal On 08/12/2009 02:30 PM, Rob Heittman wrote: > Yes. Sun JDK 6U9 and above on Ubuntu Jaunty have not demonstrated any > real showstoppers for my purposes. My highest traffic server (a > Rackspace dedicated box) handles about 15 requests per second > continuously, so while we're not pressing up against the theoretical > maximums here, I feel pretty happy that the JDK platform is stable > anyway. We haven't seen any unpleasantness on Slicehost or Amazon > EC2, the other two hosting providers we use. EC2/Jaunty/Sun is where > we put all our new applications. We use the "alestic" EC2 images as a > Ubuntu baseline and then prepare our own AMIs. > > Unrelated, since you're also a scripting guy ... those high load > servers still need an occasional JVM restart to clear memory leaks > associated with script engine use. I can't officially blame Rhino, > Jython, or JRuby for this, as the real culprit is almost certainly > antipatterns in user-authored scripts, but definitely the sites that > run lots of scripts do leak memory over time. That's the only > stability problem that forces occasional restarts on our Restlet 1.2M2 > based platform. > > Currently I'm benchmarking stuff on 2.0M4 (well, technically a > snapshot from 2 days later that fixes a Mac bug) and the performance > seems better, stability just as good. > > - R > > On Wed, Aug 12, 2009 at 3:03 PM, Tal Liron > <[email protected] <mailto:[email protected]>> wrote: > > This is a very useful thread! > > So, when you listed the problems with OpenJDK6 on Hardy and > Jaunty, does this mean you didn't see the same problems using > Sun's JDK6 on those platforms? > > -Tal > > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2383279

