Jake Slack | 03928ae | 2014-05-13 18:41:56 -0700 | [diff] [blame] | 1 | <?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://docs.codehaus.org/display/JETTY/jetty.xml --> |
| 9 | <!-- --> |
| 10 | <!-- =============================================================== --> |
| 11 | |
| 12 | |
| 13 | <Configure id="Proxy" class="org.eclipse.jetty.server.Server"> |
| 14 | |
| 15 | <!-- =========================================================== --> |
| 16 | <!-- Server Thread Pool --> |
| 17 | <!-- =========================================================== --> |
| 18 | <Set name="ThreadPool"> |
| 19 | <!-- Default queued blocking threadpool |
| 20 | --> |
| 21 | <New class="org.eclipse.jetty.util.thread.QueuedThreadPool"> |
| 22 | <Set name="minThreads">10</Set> |
| 23 | <Set name="maxThreads">50</Set> |
| 24 | </New> |
| 25 | </Set> |
| 26 | |
| 27 | |
| 28 | <!-- =========================================================== --> |
| 29 | <!-- Set connectors --> |
| 30 | <!-- =========================================================== --> |
| 31 | |
| 32 | <Call name="addConnector"> |
| 33 | <Arg> |
| 34 | <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> |
| 35 | <Set name="host"><Property name="jetty.host" /></Set> |
| 36 | <Set name="port"><Property name="jetty.port" default="8888"/></Set> |
| 37 | <Set name="maxIdleTime">300000</Set> |
| 38 | <Set name="Acceptors">2</Set> |
| 39 | <Set name="statsOn">false</Set> |
| 40 | <Set name="lowResourcesConnections">20000</Set> |
| 41 | <Set name="lowResourcesMaxIdleTime">5000</Set> |
| 42 | </New> |
| 43 | </Arg> |
| 44 | </Call> |
| 45 | |
| 46 | <!-- =========================================================== --> |
| 47 | <Set name="handler"> |
| 48 | <New id="Servlets" class="org.eclipse.jetty.servlet.ServletHandler"> |
| 49 | <Call name="addServletWithMapping"> |
| 50 | <Arg>org.eclipse.jetty.servlets.ProxyServlet</Arg> |
| 51 | <Arg>/</Arg> |
| 52 | </Call> |
| 53 | </New> |
| 54 | </Set> |
| 55 | |
| 56 | <!-- =========================================================== --> |
| 57 | <!-- extra options --> |
| 58 | <!-- =========================================================== --> |
| 59 | <Set name="stopAtShutdown">true</Set> |
| 60 | <Set name="sendServerVersion">true</Set> |
| 61 | <Set name="sendDateHeader">true</Set> |
| 62 | <Set name="gracefulShutdown">1000</Set> |
| 63 | |
| 64 | </Configure> |