Home / Assignment 1 / Assignment 2 / Rules For Code / Git Tutorials / Database / Export Mysql / How to disable root for ssh / Things in Mysql
Tomcat taking time to start
If you are facing the issue of Tomcat taking time to start in the browser eventhough you are gettingthe message “Tomcat started” in your terminal, then try this.
You need to add a particular line in catalina.sh file.
So lets start the process,
-
Open the file catalina.sh which is located in your Tomcat’s bin folder.
Ex: vi /opt/tomcat/bin/catalina.sh - In the catalina.sh look for this particular line.
# Register custom URL handlers # Do this here so custom URL handles (specifically 'war:...') can be used in the security policy JAVA_OPTS="$JAVA_OPTS -Djava.protocol.handler.pkgs=org.apache.catalina.webresources"
Below JAVA_OPTS line add another line like this
JAVA_OPTS="$JAVA_OPTS -Djava.security.egd=file:/dev/./urandom"
- Save this file and you should be able to solve your problem of delay to start Tomcat.