【性能调优】如何将Hybris启动时间减少30%-50%
try this from v5.1 onwards.
修改:hybris\bin\platform\tomcat\conf\server.xml
<Engine name="Catalina" defaultHost="localhost" startStopThreads="0">
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="${HYBRIS_LOG_DIR}/tomcat"
prefix="access."
suffix=".log"
pattern="combined"
/>
<Host name="localhost"
appBase="webapps"
unpackWARs="false"
autoDeploy="false" startStopThreads="0">
${tomcat.webapps}
</Host>
</Engine>
重启时立即生效。但是在ant build后会丢失或覆盖。所以请直接修改
hybris\config\tomcat\conf\server.xml
reference info can be found here:
1.http://tomcat.apache.org/tomcat-7.0-doc/config/host.html
2.http://tomcat.apache.org/tomcat-7.0-doc/config/engine.html
转载于:https://blog.51cto.com/dehybris/1685237