Report this

What is the reason for this report?

Ubuntu14 Tomcat7 Application deployment time

Posted on July 18, 2014

I am noticing that deploying a new applicaiton on tomcat7 takes a while to deploy. In the logs i can see all is clear but i cannot connect to http://host:8080 . Browser just hangs…

[localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 12833 ms

Any ideas why i cannot connect ? If i wait half an hour, perhaps i will be able to connect…



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Take a look at How do I make Tomcat startup faster?. Does that help?

I ran into the same thing and it took forever to figure out.

Problem

The random number generator collects various bits of information from the operation of the system as an “entropy source” to provide more randomness. This process blocks the start of the Tomcat server.

Solution

Use a different source of random numbers.

In /etc/default/tomcat7, add the following line below the existing JAVA_OPTS variable.

JAVA_OPTS="${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom"

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.