You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by David Blevins <da...@gmail.com> on 2013/01/03 05:47:57 UTC

JAX-RS Deployment takes a while

Working on t1.micros in EC2 and noticing that the JAX-RS portion of deployment (1.5.1) is taking an exceptionally long time.


    Jan 3, 2013 4:28:52 AM org.apache.catalina.core.AprLifecycleListener init
    [...trimmed 2 minutes worth of logging...]
    Jan 3, 2013 4:30:43 AM org.apache.openejb.assembler.classic.Assembler createApplication
    INFO: Deployed Application(path=/home/ec2-user/.../apache-tomee/webapps/ROOT)
    Jan 3, 2013 4:32:59 AM org.apache.cxf.endpoint.ServerImpl initDestination
    INFO: Setting the server's publish address to be http:/
    Jan 3, 2013 4:32:59 AM org.apache.openejb.server.rest.RESTService deployEJB
    INFO: REST Service: http://localhost:17171/api/testlog/*  -> EJB Testlog
    Jan 3, 2013 4:32:59 AM org.apache.cxf.endpoint.ServerImpl initDestination
    INFO: Setting the server's publish address to be http:/
    Jan 3, 2013 4:32:59 AM org.apache.openejb.server.rest.RESTService deployEJB
    INFO: REST Service: http://localhost:17171/api/build/*  -> EJB Builds
    Jan 3, 2013 4:32:59 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-17171"]
    Jan 3, 2013 4:32:59 AM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-auto-1-60327"]
    Jan 3, 2013 4:32:59 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 243473 ms

The web profile startup is roughly 1m 50s, then JAX-RS takes another 2m 16s.

Aside from being pretty terrible time it really should have some log output so we don't go silent and give people the impression the server is hanging.


-David


Re: JAX-RS Deployment takes a while

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Maybe try the snapshot too with the new deployment

We have now a single jaxrsserverfactory! A real gain when we have multiple
endpoints!
Le 3 janv. 2013 05:48, "David Blevins" <da...@gmail.com> a écrit :

> Working on t1.micros in EC2 and noticing that the JAX-RS portion of
> deployment (1.5.1) is taking an exceptionally long time.
>
>
>     Jan 3, 2013 4:28:52 AM org.apache.catalina.core.AprLifecycleListener
> init
>     [...trimmed 2 minutes worth of logging...]
>     Jan 3, 2013 4:30:43 AM org.apache.openejb.assembler.classic.Assembler
> createApplication
>     INFO: Deployed
> Application(path=/home/ec2-user/.../apache-tomee/webapps/ROOT)
>     Jan 3, 2013 4:32:59 AM org.apache.cxf.endpoint.ServerImpl
> initDestination
>     INFO: Setting the server's publish address to be http:/
>     Jan 3, 2013 4:32:59 AM org.apache.openejb.server.rest.RESTService
> deployEJB
>     INFO: REST Service: http://localhost:17171/api/testlog/*  -> EJB
> Testlog
>     Jan 3, 2013 4:32:59 AM org.apache.cxf.endpoint.ServerImpl
> initDestination
>     INFO: Setting the server's publish address to be http:/
>     Jan 3, 2013 4:32:59 AM org.apache.openejb.server.rest.RESTService
> deployEJB
>     INFO: REST Service: http://localhost:17171/api/build/*  -> EJB Builds
>     Jan 3, 2013 4:32:59 AM org.apache.coyote.AbstractProtocol start
>     INFO: Starting ProtocolHandler ["http-bio-17171"]
>     Jan 3, 2013 4:32:59 AM org.apache.coyote.AbstractProtocol start
>     INFO: Starting ProtocolHandler ["ajp-bio-auto-1-60327"]
>     Jan 3, 2013 4:32:59 AM org.apache.catalina.startup.Catalina start
>     INFO: Server startup in 243473 ms
>
> The web profile startup is roughly 1m 50s, then JAX-RS takes another 2m
> 16s.
>
> Aside from being pretty terrible time it really should have some log
> output so we don't go silent and give people the impression the server is
> hanging.
>
>
> -David
>
>