Improve Apache Tomcat Performance
Tomcat is most commonly used server when we deploy Java application. But sometimes it stuck at startup time and works slowly.
Hello Everyone, here i am sharing the secret things of tomcat to makes it faster. I recommend that take backup of file before any modification.
We will do this by three simple steps:
Step 1: Open tomcat folder (Check in your installation directory) and go to bin directory.
Step 2: Open catalina.sh file and search JAVA_OPTS (in vi editor “/<search-string>”) and replace -Djava.security.egd=file:/dev/./urandom
for example i added this
JAVA_OPTS="$JAVA_OPTS $JSSE_OPTS -Djava.security.egd=file:/dev/./urandom"
Steps 3: Save this file (:wq command in vi editor) and restart Tomcat.
Now open logs and see the result. I hope it will solve your problem.
Thank you for reading.