Tomcat做成系统服务+ 生产服务器性能优化

服务器优化:

http://www.oschina.net/translate/tomcat-performance-tuning

 

tomcat做成系统服务:

1、修改service.bat,增加启动参数

--JvmOptions "-Xms1024m;-Xmx1024m;-XX:NewSize=512m;-XX:MaxNewSize=512m;-XX:PermSize=512m;-XX:MaxPermSize=512m;-Dcatalina.home=%CATALINA_HOME%;-Dcatalina.base=%CATALINA_BASE%;-Djava.endorsed.dirs=%CATALINA_HOME%\endorsed;-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager;-Djava.util.logging.config.file=%CATALINA_BASE%\conf\logging.properties" 

 2、service install xxxx; service uninstall xxxxx

3、设置延期启动

你可能感兴趣的:(java,tomcat)