加快tomcat8启动速度
程序员文章站
2022-07-13 13:54:02
...
1.禁止Servlet 3扫描
修改tomcat/conf/catalina.properties 文件
org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
2. 模块并行启动
修改tomcat/conf/server.xml
每个 host 与 engin 增加属性
startStopThreads="0"
<Engine
..
startStopThreads="0"
>
<Host
..
startStopThreads="0"
>
修改tomcat/conf/catalina.properties 文件
org.apache.catalina.startup.ContextConfig.jarsToSkip=*.jar
tomcat.util.scan.StandardJarScanFilter.jarsToSkip=*.jar
2. 模块并行启动
修改tomcat/conf/server.xml
每个 host 与 engin 增加属性
startStopThreads="0"
<Engine
..
startStopThreads="0"
>
<Host
..
startStopThreads="0"
>
上一篇: window10上编译openjdk9
下一篇: MAVEN 常用命令