Hi Hugo,
Interesting indeed. When I removed packages scanning, there was a large
improvement but I am still quite surprised by the boot time of the
Grizzly+Jersey. As I already said, I did not measure nor profile anything,
but my human-based feeling is consistent with what you are observing.
Obviously, this is no big deal when your application is supposed to boot-up
once in a while, but this is not my use case: Our application goes on and
off and is part of another larger system.
I will try next week to get some profiling metrics.
Best regards,
Arnaud
On Fri, Apr 1, 2011 at 6:21 PM, Hugo Visser [via Jersey] <
ml-node+6231698-1169452218-211638_at_n2.nabble.com> wrote:
> Hi Arnaud,
>
> I was wondering if you are also seeing a speed up in
> WebApplicationImpl _initiate? I'm currently using GuiceContainer and I
> am explicitly binding the resources in Guice module. Looking at the
> code this appears to be the same as passing an Application object.
>
> The large delay in my case appears to be the actual init of the
> WebApplicationImpl which takes about 1,5 seconds for our app, running
> on appengine. I've been digging through the code trying to find
> something to optimize, but didn't get anywhere. It would be great if
> the bootstrapping delay could be reduced. Any hints in that area would
> be appreciated.
>
> Hugo
>
> On Fri, Apr 1, 2011 at 2:33 PM, Arnaud Bailly <[hidden email]<http://user/SendEmail.jtp?type=node&node=6231698&i=0&by-user=t>>
> wrote:
>
> > Hello,
> >
> > I was wondering then how it came it took me a bit of time to figure out
> this
> > is the "best practice" with Jersey. An thought it might be better to
> > advocate it as early as possible in the documentation which, AFAI
> remember
> > is mostly oriented towards automatic discovery. A detailed example of
> wiring
> > an applilcation, with resources and providers, might be helpful to get a
> > grasp of how best integrate Jersey.
> >
> > Best regards,
> > Arnaud
> >
> > --
> > View this message in context:
> http://jersey.576304.n2.nabble.com/Reducing-boot-time-for-Jersey-Grizzly-server-tp6210445p6230789.html<http://jersey.576304.n2.nabble.com/Reducing-boot-time-for-Jersey-Grizzly-server-tp6210445p6230789.html?by-user=t>
>
> > Sent from the Jersey mailing list archive at Nabble.com.
> >
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://jersey.576304.n2.nabble.com/Reducing-boot-time-for-Jersey-Grizzly-server-tp6210445p6231698.html
> To unsubscribe from Reducing boot time for Jersey + Grizzly server, click
> here<http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6210445&code=YXJuYXVkLm9xdWJlQGdtYWlsLmNvbXw2MjEwNDQ1fC0zNTQzNzgzMjA=>.
>
>
--
View this message in context: http://jersey.576304.n2.nabble.com/Reducing-boot-time-for-Jersey-Grizzly-server-tp6210445p6231904.html
Sent from the Jersey mailing list archive at Nabble.com.