« Return to Thread: Long time processing in the DwrServlet.service()

Long time processing in the DwrServlet.service()

by Dmitry Kudrenko :: Rate this Message:

Reply to Author | View in Thread

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)


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Long time processing in the DwrServlet.service()

LightInTheBox - Buy quality products at wholesale price