Page 1 of 1

Admin takes long to startup

Posted: Wed Oct 16, 2013 6:42 pm
by zenman
When I run the starty-jetty project and the any build.xml in the admin module.

It rakes about 8 minutes to start. You can see the times nelow

This is a virtual box virtual machine running Centos 6.5 x86 with 2 gb ram.



[artifact:mvn] [INFO] Web overrides = none
[artifact:mvn] [INFO] web.xml file = file:/usr2/bl-demo/DemoSite/admin/target/admin/WEB-INF/web.xml
[artifact:mvn] [INFO] Webapp directory = /usr2/bl-demo/DemoSite/admin/target/admin
[artifact:mvn] 2013-10-16 16:20:10.032:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.


and then


[artifact:mvn] 2013-10-16 16:24:36.095:INFO:/:No Spring WebApplicationInitializer types detected on classpath
[artifact:mvn] 2013-10-16 16:24:38.035:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/admin,file:/usr2/zendev/bl-demo/DemoSite/admin/target/admin/},file:/usr2/bl-demo/DemoSite/admin/target/admin/
[artifact:mvn] 2013-10-16 16:24:38.036:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/admin,file:/usr2/zendev/bl-demo/DemoSite/admin/target/admin/},file:/usr2/zendev/bl-demo/DemoSite/admin/target/admin/
[artifact:mvn] 2013-10-16 16:24:38.036:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/admin,file:/usr2/zendev/bl-demo/DemoSite/admin/target/admin/},file:/usr2/bl-demo/DemoSite/admin/target/admin/
[artifact:mvn] 2013-10-16 16:24:38.046:INFO:/:Set web app root system property: 'blAdmin.root' = [/usr2/bl-demo/DemoSite/admin/target/admin]


and then a whole bunch of hibernate things and finally


[artifact:mvn] 2013-10-16 16:26:31.415:INFO:/:Initializing Spring FrameworkServlet 'admin'
[artifact:mvn] 2013-10-16 16:26:38.310:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8081
[artifact:mvn] 2013-10-16 16:26:39.034:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] of [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2]
[artifact:mvn] 2013-10-16 16:26:39.039:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8444
[artifact:mvn] [INFO] Started Jetty Server


Is this typical????

Re: Admin takes long to startup

Posted: Thu Oct 17, 2013 4:11 am
by cartesium
i also have this problem, you can try use tomcat7 embedded

Re: Admin takes long to startup

Posted: Fri Oct 18, 2013 3:28 pm
by zenman
It is also the Site server as well.

Seems systematic.

I guess I have to dive in to find the cause.

Something that stuck out is that the Jetty Encryption is trying to establish randomness using /dev/random.

On a lesser used server, like mine, randomness is not created by the various processes that /dev/random is needing.

/dev/urandom is the better choice. How to change and if it is the real cause is yet to be known.

It could also be Spring initializing.

I could be VirtualBox, it could be solar flares.

Yea, lemme switch over to tomcat embedded.

Well let me learn first.

Re: Admin takes long to startup

Posted: Mon May 05, 2014 3:42 am
by iWantToKnow
I have the same issue. The Startup hangs for more than 2 minutes:

[artifact:mvn] 2014-05-05 08:40:50.993:INFO:oejpw.PlusConfiguration:No Transaction manager found - if your webapp requires one, please configure one.
[artifact:mvn] 2014-05-05 08:43:24.549:INFO:/:No Spring WebApplicationInitializer types detected on classpath

So I'm not quite sure wether it is a problem with the transaction manager or with the logging framework. Has anyone solved this issue?