Re: Re: Overwriting ServerServlet issue

2012-11-22 Thread Thierry Boileau
Hi Hanno,

did you tell us the kind of servlet container you are using?

Best regards,
Thierry Boileau

Hi Thiery,
>
> don't know whether it helps but I ran it once in the YourKit profiler and
> the output for a single call with initialization first was
> https://dl.dropbox.com/u/317086/Screenshots/Restlet_Profiler.png
>
> Best regards,
> Hanno
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3030268

Re: Overwriting ServerServlet issue

2012-11-15 Thread Thierry Boileau
Hi Hanno,

>The first request took 6-12 seconds
wow, that's too long... I've never seen that...
I wil check on a PC with Window 7 also.

Best regards,
Thiery Boileau

ps :
>I've meant the time which is used before the first request is processed,
but we have only seen that on Windows 7.
you're right, actually the application is not started at the same time than
the servlet container, but is lazily loaded at the first request.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028649

RE: Overwriting ServerServlet issue

2012-11-15 Thread Hanno Wiegard
Hello Thierry,

thanks for creating a ticket for this. 

Regarding your question, with "long startup times" I've meant the time which is 
used before the first request is processed, but we have only seen that on 
Windows 7. The first request took 6-12 seconds, all subsequent requests are 
below 0.5 seconds. After overwriting the servlet and removing the search for 
the restlet.xml file the first request is served in about 1 seconds.

Thanks,
Hanno

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028588


RE: Overwriting ServerServlet issue

2012-11-15 Thread Thierry Boileau
Hello Hanno,

I understand that this could be enhanced. At the "creation" of the Component, 
we should be able to know if the Component is the default one or not. 
I've entered an issue for that : 
https://github.com/restlet/restlet-framework-java/issues/686


Having said that, I have a little worry: what do you mean by "long startup 
times"?

Best regards,
Thierry Boileau

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028538


Overwriting ServerServlet issue

2012-11-14 Thread Hanno Wiegard
Hello,

we are using Restlet 2.0.11 and encountering long startup times. What I noticed 
when looking into the code of org.restlet.ext.servlet.ServerServlet is that the 
servlet spent an significant amount of time in resolving the restlet.xml file. 
We do not use that file so I've decided to overwrite the relevant methods of 
the servlet. While doing that I came across the isDefaultComponent() method. 
This method always searches for a restlet.xml file and is unfortunately marked 
as private.

Thanks,
Hanno

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3028318