Hi,
I have a rest service developed using restlet. It is in production and it
stops responding for a while whenever any exception is thrown while
processing the request.
example:
public class MyResource extends ServerResource{
public void doInit() throws ResourceException{
try{
//BLOCK A
}catch{
// log exception
}
}
@Get
public Representation getMyResponse(){
try{
//BLOCK B
}catch{
// log exception
}
}
}
Here, In the above example, when an exception is thrown in BLOCK A, control
comes to catch and logs exception n then restlet takes over and sends the
response to the client.
If exception occurs in BLOCK B, control comes to catch and logs the
exception. But, after this point, restlet takes over and does not send the
response back to the client right away when the application is under load.
Restlet waits on something and that makes other subsequent requests not
responsive as well. After a while, Restlet starts responding again.
I tried to change http connector from Simple to jetty, But, it still does
not change anything.
Any ideas from gurus?
Thanks
Rohit
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/restlet-stops-responding-for-a-while-when-exception-is-thrown-under-load-tp5412698p5412698.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2645675