Ubuntu14 Tomcat7 Application deployment time

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…

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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


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.


Use a different source of random numbers.

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


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