Speed up servlet start

- Set metadata-complete="true" attribute on the <web-app> element.
- Add an empty <absolute-ordering /> element.

See:
https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Configure_your_web_ap
plication

On my (old) machine, this reduces startup time with Jetty from 137580ms
to 20166ms.
pull/925/merge
Mark Janssen 2015-10-08 22:28:32 +02:00 committed by Justin Richer
parent 90e4cb97ff
commit 301802abd3
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@
-->
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
metadata-complete="true">
<absolute-ordering />
<!-- The definition of the Root Spring Container shared by all Servlets
and Filters -->