器量大者,福泽必厚
全部博文(587)
分类:
2010-01-06 16:30:24
摘之书上: You can run Tomcat with Java’s server option, which will increase efficiency and thus increase performance
方法:
1:windows下修改%CATALINA_HOME%/bin/setclasspath.bat文件
[root@quartz bin]# cat setclasspath.bat | grep _RUNJAVA
set _RUNJAVA="%JRE_HOME%\bin\java"
set _RUNJAVAW="%JRE_HOME%\bin\javaw"
set _RUNJAVAC="%JAVA_HOME%\bin\javac"
[root@quartz bin]# cat setclasspath.bat | grep _RUNJDB
set _RUNJDB="%JAVA_HOME%\bin\jdb"
修改为
set _RUNJAVA="%JRE_HOME%\bin\java" -server
set _RUNJAVAW="%JRE_HOME%\bin\javaw" -server
set _RUNJDB="%JAVA_HOME%\bin\jdb" -server
2:linux下修改$CATALINA_HOME/bin/setclasspath.sh
将[root@quartz bin]# cat setclasspath.bat | grep _RUNJAVA
set _RUNJAVA="%JRE_HOME%\bin\java"
和
[root@quartz bin]# cat setclasspath.bat | grep _RUNJDB
set _RUNJDB="%JAVA_HOME%\bin\jdb"
修改为:
_RUNJAVA="$JAVA_HOME"/bin/java -server
_RUNJDB="$JAVA_HOME"/bin/jdb -server
即可