Improve Apache Tomcat Performance

Arnish Gupta
1 min readApr 18, 2020

--

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.

Photo by Doug Maloney on Unsplash

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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response