Skip to content

Commit 301802a

Browse files
praseodymjricher
authored andcommitted
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.
1 parent 90e4cb9 commit 301802a

File tree

1 file changed

+4
-1
lines changed
  • openid-connect-server-webapp/src/main/webapp/WEB-INF

1 file changed

+4
-1
lines changed

openid-connect-server-webapp/src/main/webapp/WEB-INF/web.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
-->
1818
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
1919
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20-
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
20+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
21+
metadata-complete="true">
22+
23+
<absolute-ordering />
2124

2225
<!-- The definition of the Root Spring Container shared by all Servlets
2326
and Filters -->

0 commit comments

Comments
 (0)