12 May 12:54
Long time processing in the DwrServlet.service()
From: Dmitry Kudrenko <dmitry@...>
Subject: Long time processing in the DwrServlet.service()
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-12 10:55:33 GMT
Expires: This article expires on 2008-05-26
Subject: Long time processing in the DwrServlet.service()
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-12 10:55:33 GMT
Expires: This article expires on 2008-05-26
Greetings I am using DWR with Simple framework (http://www.simpleframework.org/). It has own Simple API which is different from servlet-api. But I use Adaptor pattern to convert simple.Request to HttpServletRequest and HttpServletResponse to simple.Response. Also I am using Reverse Ajax in my web application. Simple request handler receives request and forwards it to the DWR Servlet using DwrServlet.service(request, response) method. DWR Servlet configured properly and it works. Sometimes I have strange behavior: request is being processed 1 minute but method on the class mapped to javascript works only 10 msec. I received this statistic wrapping DwrServlet.service with timer1 and adding timer2 to the my Java class. timer1.maximum value = 1 minute (The maximum time is the same as maximum time for Reverse Ajax request) timer2.maximum value = 10 msec. This situation is hard to reproduce in my local version of the application. But I have this statistic often in the live system. So it is hard to debug it. It seems the number of these errors depends on browser (can't reproduce it with FireFox) and connection quality. (Not sure). Have you idea where the request can be 60 sec in the DwrServlet.service? Thanks in advance. -- -- Best regards, Dmitry Kudrenko ARDAS group (http://www.ardas.dp.ua)
RSS Feed