blob: 153514da01527445b519b44ed22ec4b7dff5c636 [file] [log] [blame]
Jake Slack03928ae2014-05-13 18:41:56 -07001<?xml version="1.0"?>
2<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
3
4<!-- =============================================================== -->
5<!-- Configure the Jetty Server -->
6<!-- -->
7<!-- Documentation of this file format can be found at: -->
8<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
9<!-- -->
10<!-- Additional configuration files are available in $JETTY_HOME/etc -->
11<!-- and can be mixed in. For example: -->
12<!-- java -jar start.jar etc/jetty-ssl.xml -->
13<!-- -->
14<!-- See start.ini file for the default configuraton files -->
15<!-- =============================================================== -->
16
17
18<Configure id="Server" class="org.eclipse.jetty.server.Server">
19
20 <!-- =========================================================== -->
21 <!-- Server Thread Pool -->
22 <!-- =========================================================== -->
23 <Set name="ThreadPool">
24 <!-- Default queued blocking threadpool -->
25 <New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
26 <Set name="minThreads">10</Set>
27 <Set name="maxThreads">200</Set>
28 <Set name="detailedDump">false</Set>
29 </New>
30 </Set>
31
32 <!-- =========================================================== -->
33 <!-- Set connectors -->
34 <!-- =========================================================== -->
35
36 <Call name="addConnector">
37 <Arg>
38 <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
39 <Set name="host"><Property name="jetty.host" /></Set>
40 <Set name="port"><Property name="jetty.port" default="8080"/></Set>
41 <Set name="maxIdleTime">300000</Set>
42 <Set name="Acceptors">2</Set>
43 <Set name="statsOn">false</Set>
44 <Set name="confidentialPort">8443</Set>
45 <Set name="lowResourcesConnections">20000</Set>
46 <Set name="lowResourcesMaxIdleTime">5000</Set>
47 </New>
48 </Arg>
49 </Call>
50
51 <!-- =========================================================== -->
52 <!-- Set handler Collection Structure -->
53 <!-- =========================================================== -->
54 <Set name="handler">
55 <New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
56 <Set name="handlers">
57 <Array type="org.eclipse.jetty.server.Handler">
58 <Item>
59 <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
60 </Item>
61 <Item>
62 <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
63 </Item>
64 </Array>
65 </Set>
66 </New>
67 </Set>
68
69 <!-- =========================================================== -->
70 <!-- extra options -->
71 <!-- =========================================================== -->
72 <Set name="stopAtShutdown">true</Set>
73 <Set name="sendServerVersion">true</Set>
74 <Set name="sendDateHeader">true</Set>
75 <Set name="gracefulShutdown">1000</Set>
76 <Set name="dumpAfterStart">false</Set>
77 <Set name="dumpBeforeStop">false</Set>
78
79</Configure>