2007-05-23 15:56:58 -04:00
|
|
|
<?xml version="1.0"?>
|
2012-03-07 15:49:28 -05:00
|
|
|
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
|
2006-02-15 19:08:26 -05:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Configure the Jetty Server -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- -->
|
|
|
|
<!-- Documentation of this file format can be found at: -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- http://wiki.eclipse.org/Jetty/Reference/jetty.xml_syntax -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- -->
|
2006-02-15 19:08:26 -05:00
|
|
|
<!-- =============================================================== -->
|
2007-05-23 15:56:58 -04:00
|
|
|
|
|
|
|
|
2012-03-07 15:49:28 -05:00
|
|
|
<Configure id="Server" class="org.eclipse.jetty.server.Server">
|
2008-07-22 00:42:13 -04:00
|
|
|
|
2012-03-20 11:17:14 -04:00
|
|
|
<!-- Increase the maximum POST size to 1 MB to be able to handle large shard requests -->
|
|
|
|
<Call name="setAttribute">
|
|
|
|
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
|
|
|
|
<Arg>200000</Arg>
|
|
|
|
</Call>
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Server Thread Pool -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="ThreadPool">
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- Default queued blocking threadpool -->
|
|
|
|
<New class="org.eclipse.jetty.util.thread.QueuedThreadPool">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="minThreads">10</Set>
|
2008-08-11 17:46:03 -04:00
|
|
|
<Set name="maxThreads">10000</Set>
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="detailedDump">false</Set>
|
2006-05-09 17:54:05 -04:00
|
|
|
</New>
|
2006-02-15 19:08:26 -05:00
|
|
|
</Set>
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Set connectors -->
|
|
|
|
<!-- =========================================================== -->
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2010-12-04 12:03:51 -05:00
|
|
|
<!--
|
2007-05-23 15:56:58 -04:00
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
2012-03-20 11:17:14 -04:00
|
|
|
<Set name="maxIdleTime">50000</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="Acceptors">2</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="statsOn">false</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="confidentialPort">8443</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="lowResourcesConnections">5000</Set>
|
|
|
|
<Set name="lowResourcesMaxIdleTime">5000</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2010-12-04 12:03:51 -05:00
|
|
|
-->
|
2007-05-23 15:56:58 -04:00
|
|
|
|
2010-12-04 12:03:51 -05:00
|
|
|
<!-- This connector is currently being used for Solr because it
|
|
|
|
showed better performance than nio.SelectChannelConnector
|
|
|
|
for typical Solr requests. -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<Call name="addConnector">
|
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New class="org.eclipse.jetty.server.bio.SocketConnector">
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="host"><SystemProperty name="jetty.host" /></Set>
|
2007-06-24 09:47:42 -04:00
|
|
|
<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="maxIdleTime">50000</Set>
|
|
|
|
<Set name="lowResourceMaxIdleTime">1500</Set>
|
2010-12-04 12:03:51 -05:00
|
|
|
<Set name="statsOn">false</Set>
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<!-- Set handler Collection Structure -->
|
|
|
|
<!-- =========================================================== -->
|
|
|
|
<Set name="handler">
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Set name="handlers">
|
2012-03-07 15:49:28 -05:00
|
|
|
<Array type="org.eclipse.jetty.server.Handler">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
<Item>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler"/>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Item>
|
|
|
|
</Array>
|
|
|
|
</Set>
|
|
|
|
</New>
|
|
|
|
</Set>
|
|
|
|
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<!-- extra options -->
|
2007-05-23 15:56:58 -04:00
|
|
|
<!-- =========================================================== -->
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="stopAtShutdown">true</Set>
|
2012-03-20 11:17:14 -04:00
|
|
|
<Set name="sendServerVersion">false</Set>
|
|
|
|
<Set name="sendDateHeader">false</Set>
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="gracefulShutdown">1000</Set>
|
|
|
|
<Set name="dumpAfterStart">false</Set>
|
|
|
|
<Set name="dumpBeforeStop">false</Set>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Call name="addBean">
|
2007-05-23 15:56:58 -04:00
|
|
|
<Arg>
|
2012-03-07 15:49:28 -05:00
|
|
|
<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
|
|
|
|
<Set name="contexts">
|
|
|
|
<Ref id="Contexts" />
|
|
|
|
</Set>
|
|
|
|
<Call name="setContextAttribute">
|
|
|
|
<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
|
|
|
|
<Arg>.*/servlet-api-[^/]*\.jar$</Arg>
|
|
|
|
</Call>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Add a customize step to the deployment lifecycle -->
|
|
|
|
<!-- uncomment and replace DebugBinding with your extended AppLifeCycle.Binding class
|
|
|
|
<Call name="insertLifeCycleNode">
|
|
|
|
<Arg>deployed</Arg>
|
|
|
|
<Arg>starting</Arg>
|
|
|
|
<Arg>customise</Arg>
|
|
|
|
</Call>
|
|
|
|
<Call name="addLifeCycleBinding">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.deploy.bindings.DebugBinding">
|
|
|
|
<Arg>customise</Arg>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
|
|
|
-->
|
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2012-03-07 15:49:28 -05:00
|
|
|
|
|
|
|
<Ref id="DeploymentManager">
|
|
|
|
<Call id="webappprovider" name="addAppProvider">
|
|
|
|
<Arg>
|
|
|
|
<New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
|
|
|
|
<Set name="monitoredDirName"><Property name="jetty.home" default="." />/webapps</Set>
|
|
|
|
<Set name="defaultsDescriptor"><Property name="jetty.home" default="."/>/etc/webdefault.xml</Set>
|
2012-03-20 14:09:37 -04:00
|
|
|
<Set name="scanInterval">0</Set>
|
2012-03-07 15:49:28 -05:00
|
|
|
<Set name="contextXmlDir"><Property name="jetty.home" default="." />/contexts</Set>
|
|
|
|
<Set name="extractWars">true</Set>
|
|
|
|
</New>
|
|
|
|
</Arg>
|
|
|
|
</Call>
|
2007-05-23 15:56:58 -04:00
|
|
|
</Ref>
|
2006-02-15 19:08:26 -05:00
|
|
|
|
2007-05-23 15:56:58 -04:00
|
|
|
</Configure>
|