[24502] | 1 | <?xml version="1.0"?>
|
---|
| 2 | <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/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="Server" class="org.mortbay.jetty.Server">
|
---|
| 14 |
|
---|
| 15 | <!-- Increase the maximum POST size to 1 MB to be able to handle large shard requests -->
|
---|
| 16 | <Call class="java.lang.System" name="setProperty">
|
---|
| 17 | <Arg>org.mortbay.jetty.Request.maxFormContentSize</Arg>
|
---|
| 18 | <Arg>1000000</Arg>
|
---|
| 19 | </Call>
|
---|
| 20 |
|
---|
| 21 | <!-- =========================================================== -->
|
---|
| 22 | <!-- Server Thread Pool -->
|
---|
| 23 | <!-- =========================================================== -->
|
---|
| 24 | <Set name="ThreadPool">
|
---|
| 25 |
|
---|
| 26 | <New class="org.mortbay.thread.QueuedThreadPool">
|
---|
| 27 | <Set name="minThreads">10</Set>
|
---|
| 28 | <Set name="maxThreads">10000</Set>
|
---|
| 29 | <Set name="lowThreads">20</Set>
|
---|
| 30 | </New>
|
---|
| 31 |
|
---|
| 32 | <!-- Optional Java 5 bounded threadpool with job queue
|
---|
| 33 | <New class="org.mortbay.thread.concurrent.ThreadPool">
|
---|
| 34 | <Set name="corePoolSize">50</Set>
|
---|
| 35 | <Set name="maximumPoolSize">50</Set>
|
---|
| 36 | </New>
|
---|
| 37 | -->
|
---|
| 38 | </Set>
|
---|
| 39 |
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 | <!-- =========================================================== -->
|
---|
| 43 | <!-- Set connectors -->
|
---|
| 44 | <!-- =========================================================== -->
|
---|
| 45 | <!-- One of each type! -->
|
---|
| 46 | <!-- =========================================================== -->
|
---|
| 47 |
|
---|
| 48 | <!-- Use this connector for many frequently idle connections
|
---|
| 49 | and for threadless continuations.
|
---|
| 50 | -->
|
---|
| 51 | <!--
|
---|
| 52 | <Call name="addConnector">
|
---|
| 53 | <Arg>
|
---|
| 54 | <New class="org.mortbay.jetty.nio.SelectChannelConnector">
|
---|
| 55 | <Set name="host"><SystemProperty name="jetty.host" /></Set>
|
---|
| 56 | <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
---|
| 57 | <Set name="maxIdleTime">30000</Set>
|
---|
| 58 | <Set name="Acceptors">2</Set>
|
---|
| 59 | <Set name="statsOn">false</Set>
|
---|
| 60 | <Set name="confidentialPort">8443</Set>
|
---|
| 61 | <Set name="lowResourcesConnections">5000</Set>
|
---|
| 62 | <Set name="lowResourcesMaxIdleTime">5000</Set>
|
---|
| 63 | </New>
|
---|
| 64 | </Arg>
|
---|
| 65 | </Call>
|
---|
| 66 | -->
|
---|
| 67 |
|
---|
| 68 | <!-- This connector is currently being used for Solr because it
|
---|
| 69 | showed better performance than nio.SelectChannelConnector
|
---|
| 70 | for typical Solr requests. -->
|
---|
| 71 | <Call name="addConnector">
|
---|
| 72 | <Arg>
|
---|
| 73 | <New class="org.mortbay.jetty.bio.SocketConnector">
|
---|
| 74 | <Set name="host"><SystemProperty name="jetty.host" /></Set>
|
---|
| 75 | <Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
---|
| 76 | <Set name="maxIdleTime">50000</Set>
|
---|
| 77 | <Set name="lowResourceMaxIdleTime">1500</Set>
|
---|
| 78 | <Set name="statsOn">false</Set>
|
---|
| 79 | </New>
|
---|
| 80 | </Arg>
|
---|
| 81 | </Call>
|
---|
| 82 |
|
---|
| 83 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
---|
| 84 | <!-- To add a HTTPS SSL listener -->
|
---|
| 85 | <!-- see jetty-ssl.xml to add an ssl connector. use -->
|
---|
| 86 | <!-- java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml -->
|
---|
| 87 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
---|
| 88 |
|
---|
| 89 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
---|
| 90 | <!-- To allow Jetty to be started from xinetd -->
|
---|
| 91 | <!-- mixin jetty-xinetd.xml: -->
|
---|
| 92 | <!-- java -jar start.jar etc/jetty.xml etc/jetty-xinetd.xml -->
|
---|
| 93 | <!-- -->
|
---|
| 94 | <!-- See jetty-xinetd.xml for further instructions. -->
|
---|
| 95 | <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
---|
| 96 |
|
---|
| 97 | <!-- =========================================================== -->
|
---|
| 98 | <!-- Set up global session ID manager -->
|
---|
| 99 | <!-- =========================================================== -->
|
---|
| 100 | <!--
|
---|
| 101 | <Set name="sessionIdManager">
|
---|
| 102 | <New class="org.mortbay.jetty.servlet.HashSessionIdManager">
|
---|
| 103 | <Set name="workerName">node1</Set>
|
---|
| 104 | </New>
|
---|
| 105 | </Set>
|
---|
| 106 | -->
|
---|
| 107 |
|
---|
| 108 | <!-- =========================================================== -->
|
---|
| 109 | <!-- Set handler Collection Structure -->
|
---|
| 110 | <!-- =========================================================== -->
|
---|
| 111 | <Set name="handler">
|
---|
| 112 | <New id="Handlers" class="org.mortbay.jetty.handler.HandlerCollection">
|
---|
| 113 | <Set name="handlers">
|
---|
| 114 | <Array type="org.mortbay.jetty.Handler">
|
---|
| 115 | <Item>
|
---|
| 116 | <New id="Contexts" class="org.mortbay.jetty.handler.ContextHandlerCollection"/>
|
---|
| 117 | </Item>
|
---|
| 118 | <Item>
|
---|
| 119 | <New id="DefaultHandler" class="org.mortbay.jetty.handler.DefaultHandler"/>
|
---|
| 120 | </Item>
|
---|
| 121 | <Item>
|
---|
| 122 | <New id="RequestLog" class="org.mortbay.jetty.handler.RequestLogHandler"/>
|
---|
| 123 | </Item>
|
---|
| 124 | </Array>
|
---|
| 125 | </Set>
|
---|
| 126 | </New>
|
---|
| 127 | </Set>
|
---|
| 128 |
|
---|
| 129 | <!-- =========================================================== -->
|
---|
| 130 | <!-- Configure the context deployer -->
|
---|
| 131 | <!-- A context deployer will deploy contexts described in -->
|
---|
| 132 | <!-- configuration files discovered in a directory. -->
|
---|
| 133 | <!-- The configuration directory can be scanned for hot -->
|
---|
| 134 | <!-- deployments at the configured scanInterval. -->
|
---|
| 135 | <!-- -->
|
---|
| 136 | <!-- This deployer is configured to deploy contexts configured -->
|
---|
| 137 | <!-- in the $JETTY_HOME/contexts directory -->
|
---|
| 138 | <!-- -->
|
---|
| 139 | <!-- =========================================================== -->
|
---|
| 140 | <Call name="addLifeCycle">
|
---|
| 141 | <Arg>
|
---|
| 142 | <New class="org.mortbay.jetty.deployer.ContextDeployer">
|
---|
| 143 | <Set name="contexts"><Ref id="Contexts"/></Set>
|
---|
| 144 | <Set name="configurationDir"><SystemProperty name="jetty.home" default="."/>/contexts</Set>
|
---|
| 145 | <Set name="scanInterval">5</Set>
|
---|
| 146 | </New>
|
---|
| 147 | </Arg>
|
---|
| 148 | </Call>
|
---|
| 149 |
|
---|
| 150 | <!-- =========================================================== -->
|
---|
| 151 | <!-- Configure the webapp deployer. -->
|
---|
| 152 | <!-- A webapp deployer will deploy standard webapps discovered -->
|
---|
| 153 | <!-- in a directory at startup, without the need for additional -->
|
---|
| 154 | <!-- configuration files. It does not support hot deploy or -->
|
---|
| 155 | <!-- non standard contexts (see ContextDeployer above). -->
|
---|
| 156 | <!-- -->
|
---|
| 157 | <!-- This deployer is configured to deploy webapps from the -->
|
---|
| 158 | <!-- $JETTY_HOME/webapps directory -->
|
---|
| 159 | <!-- -->
|
---|
| 160 | <!-- Normally only one type of deployer need be used. -->
|
---|
| 161 | <!-- -->
|
---|
| 162 | <!-- =========================================================== -->
|
---|
| 163 | <Call name="addLifeCycle">
|
---|
| 164 | <Arg>
|
---|
| 165 | <New class="org.mortbay.jetty.deployer.WebAppDeployer">
|
---|
| 166 | <Set name="contexts"><Ref id="Contexts"/></Set>
|
---|
| 167 | <Set name="webAppDir"><SystemProperty name="jetty.home" default="."/>/webapps</Set>
|
---|
| 168 | <Set name="parentLoaderPriority">false</Set>
|
---|
| 169 | <Set name="extract">true</Set>
|
---|
| 170 | <Set name="allowDuplicates">false</Set>
|
---|
| 171 | <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
|
---|
| 172 | </New>
|
---|
| 173 | </Arg>
|
---|
| 174 | </Call>
|
---|
| 175 |
|
---|
| 176 | <!-- =========================================================== -->
|
---|
| 177 | <!-- Configure Authentication Realms -->
|
---|
| 178 | <!-- Realms may be configured for the entire server here, or -->
|
---|
| 179 | <!-- they can be configured for a specific web app in a context -->
|
---|
| 180 | <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
|
---|
| 181 | <!-- example). -->
|
---|
| 182 | <!-- =========================================================== -->
|
---|
| 183 | <!--
|
---|
| 184 | <Set name="UserRealms">
|
---|
| 185 | <Array type="org.mortbay.jetty.security.UserRealm">
|
---|
| 186 | <Item>
|
---|
| 187 | <New class="org.mortbay.jetty.security.HashUserRealm">
|
---|
| 188 | <Set name="name">Test Realm</Set>
|
---|
| 189 | <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
|
---|
| 190 | <Set name="refreshInterval">0</Set>
|
---|
| 191 | </New>
|
---|
| 192 | </Item>
|
---|
| 193 | </Array>
|
---|
| 194 | </Set>
|
---|
| 195 | -->
|
---|
| 196 |
|
---|
| 197 | <!-- =========================================================== -->
|
---|
| 198 | <!-- Configure Request Log -->
|
---|
| 199 | <!-- Request logs may be configured for the entire server here, -->
|
---|
| 200 | <!-- or they can be configured for a specific web app in a -->
|
---|
| 201 | <!-- contexts configuration (see $(jetty.home)/contexts/test.xml -->
|
---|
| 202 | <!-- for an example). -->
|
---|
| 203 | <!-- =========================================================== -->
|
---|
| 204 | <!--
|
---|
| 205 | <Ref id="RequestLog">
|
---|
| 206 | <Set name="requestLog">
|
---|
| 207 | <New id="RequestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
|
---|
| 208 | <Set name="filename"><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set>
|
---|
| 209 | <Set name="filenameDateFormat">yyyy_MM_dd</Set>
|
---|
| 210 | <Set name="retainDays">90</Set>
|
---|
| 211 | <Set name="append">true</Set>
|
---|
| 212 | <Set name="extended">false</Set>
|
---|
| 213 | <Set name="logCookies">false</Set>
|
---|
| 214 | <Set name="LogTimeZone">GMT</Set>
|
---|
| 215 | </New>
|
---|
| 216 | </Set>
|
---|
| 217 | </Ref>
|
---|
| 218 | -->
|
---|
| 219 | <!-- =========================================================== -->
|
---|
| 220 | <!-- extra options -->
|
---|
| 221 | <!-- =========================================================== -->
|
---|
| 222 | <Set name="stopAtShutdown">true</Set>
|
---|
| 223 | <Set name="sendServerVersion">false</Set>
|
---|
| 224 | <Set name="sendDateHeader">false</Set>
|
---|
| 225 | <Set name="gracefulShutdown">1000</Set>
|
---|
| 226 |
|
---|
| 227 | </Configure>
|
---|