Lately, I was working on Tomcat 9 and encountered an issue. It was getting stuck at the following stage during startup. Are you also having the same issue? Usually, this happens on VM and here is how you can fix this. Take a backup of a file before modifying and if feasible, test in a non-production environment.

Go to Tomcat installation folder and then bin Open catalina.sh using the vi editor Search for JAVA_OPTS and add the following

For example, I added it here.

Save the file and restart Tomcat

Look at the catalina.out file and it should be started. This simple trick has helped me, and I hope you too! If you are learning or curious to learn more about Tomcat then check out this beginner to the advanced course.

How to Fix Tomcat Stuck at Startup Issue  - 72How to Fix Tomcat Stuck at Startup Issue  - 71How to Fix Tomcat Stuck at Startup Issue  - 22How to Fix Tomcat Stuck at Startup Issue  - 79How to Fix Tomcat Stuck at Startup Issue  - 37How to Fix Tomcat Stuck at Startup Issue  - 30How to Fix Tomcat Stuck at Startup Issue  - 65How to Fix Tomcat Stuck at Startup Issue  - 10How to Fix Tomcat Stuck at Startup Issue  - 82How to Fix Tomcat Stuck at Startup Issue  - 81How to Fix Tomcat Stuck at Startup Issue  - 32How to Fix Tomcat Stuck at Startup Issue  - 10How to Fix Tomcat Stuck at Startup Issue  - 68How to Fix Tomcat Stuck at Startup Issue  - 14How to Fix Tomcat Stuck at Startup Issue  - 82How to Fix Tomcat Stuck at Startup Issue  - 8How to Fix Tomcat Stuck at Startup Issue  - 47How to Fix Tomcat Stuck at Startup Issue  - 17How to Fix Tomcat Stuck at Startup Issue  - 44How to Fix Tomcat Stuck at Startup Issue  - 59How to Fix Tomcat Stuck at Startup Issue  - 53How to Fix Tomcat Stuck at Startup Issue  - 71How to Fix Tomcat Stuck at Startup Issue  - 15