Hi Stephen, After further investigation, I was finally able to reproduce the issue consistently, forcing the GC to run. I fixed it by removing the finalize() method.
It means that developers won't be able to rely on the GC to ultimately release pending connection which isn't a safe bet anyway. The fix is in SVN trunk and will be part of Restlet 2.0 M5. Thanks for the help with this very annoying bug! Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com Jerome Louvel a écrit : > Hi Stephen, > > I ran your test plan on my development machine (WinXP SP2) with Tomcat > 6.0.20 without any issue. I used the latest code from SVN trunk. > > I had to reduce the number of concurrent threads from 5 to 4 otherwise as > the load was too high (no sleep time between requests) and was producing > "java.net.SocketException: Connection reset" errors. > > Could you share more details about your testing environment (OS, JVM, CPU, > etc.) and the exact error received by the client (JMeter in our case)? > > Note that I've attached the complete standalone Eclipse project I use to > attempt to reproduce the issue (same source code as yours), including the > Restlet source code for easier debugging. See the related issue: > > "Extracting POST parameters fails sporadically" > http://restlet.tigris.org/issues/show_bug.cgi?id=889 > > Best regards, > Jerome Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -----Message d'origine----- > De : [email protected] [mailto:[email protected]] > Envoyé : vendredi 4 septembre 2009 15:45 > À : [email protected] > Objet : RE: Extracting POST parameters fails sporadically > > Just as an update: I changed the Application Server (now using Jetty instead > of Tomcat), and the problem is gone. So, it seems to be located somewhere in > the interaction with Tomcat, or maybe even in Tomcat itself. > > Regards, > Stefan > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23910 > 19 > > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2394677 > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2399308

