I rented VPS, Ubuntu 14.04, installed Tomcat 8 there. For the first time, it started normally. Hooray. Turned off. Turned on. Not responding. I suffered for quite a long time, in the end I just wrote

/opt/tomcat/bin/catalina.sh run 

and began to surf the Internet further. After 17 minutes, he earned! I got this output in the console: http://pastebin.com/WHZv9ssy

As you can see step

01-May-2015 22: 13: 02.183 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory / opt / tomcat / webapps / ROOT

lasted 17 minutes! What could it be like that? Which way to dig?

Addition: Judging by server statistics, at this time there was no increased load on the processor, the occupied RAM was 170 out of 1024 MB, no disk operations were performed.

    1 answer 1

    Actually, I found a solution. Need to replace in file

    $JAVA_PATH/jre/lib/security/java.security

    the string

     securerandom.source=file:/dev/urandom 

    on line

    securerandom.source=file:/dev/./urandom

    The original answer is here: https://stackoverflow.com/questions/26431922/tomcat7-starts-too-late-on-ubuntu-14-04-x64-digitalocean

    • Thanks, it helped. - Andrew Grow