Running Tomcat with the Server Option

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 



Pro Jakarta Tomcat 5
Pro Apache Tomcat 5/5.5 (Experts Voice in Java)
ISBN: 1590593316
EAN: 2147483647
Year: 2004
Pages: 94

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net