You can run Tomcat with Java’s server option, which will increase efficiency and thus increase performance. To run Tomcat with the server option, you’ll need to modify a number of files in the bin directory. For Windows, you need to edit setclasspath.bat. Change the last three lines as follows:
set _RUNJAVA="%JAVA_HOME%\bin\java" -server set _RUNJAVAW="%JAVA_HOME%\bin\javaw" -server set _RUNJDB="%JAVA_HOME%\bin\jdb" -server
Of course this assumes you’re starting Tomcat manually.
The process is similar in Linux. This time you modify setclasspath.sh, like so:
_RUNJAVA="$JAVA_HOME"/bin/java -server _RUNJDB="$JAVA_HOME"/bin/jdb -server