<?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Get name="ThreadPool"> <Set name="minThreads" type="int">10</Set> <Set name="maxThreads" type="int">100</Set> <Set name="idleTimeout" type="int">60000</Set> <Set name="detailedDump">false</Set> </Get>
<Call name="addBean"> <Arg> <New class="org.eclipse.jetty.util.thread.ScheduledExecutorScheduler" /> </Arg> </Call>
<Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.ServerConnector"> <Arg> <Ref refid="Server"></Ref> </Arg> <Set name="port">8899</Set> <Set name="connectionFactories"> <Array type="org.eclipse.jetty.server.ConnectionFactory"> <Item> <New class="org.eclipse.jetty.server.HttpConnectionFactory"></New> </Item> </Array> </Set> <Set name="idleTimeout">30000</Set> <!-- <Set name="lowResourceMaxIdleTime">3000</Set> <set name="lowResourcesConnections">90</set> <Set name="acceptors">1</Set> --> </New> </Arg> </Call>
<Set name="handler"> <New class="org.eclipse.jetty.server.handler.StatisticsHandler"> <Set name="handler"> <New class="org.eclipse.jetty.server.handler.HandlerCollection"> <Set name="handlers"> <Array type="org.eclipse.jetty.server.Handler"> <Item> <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"> <Set name="handlers"> <Array type="org.eclipse.jetty.server.Handler"> <Item> <New class="org.eclipse.jetty.servlets.gzip.GzipHandler"> <Set name="mimeTypes">text/html,text/xml,application/json,text/plain,application/xhtml+xml,text/css,application/javascript,image/svg+xml </Set> <Set name="minGzipSize">0</Set> <Set name="handler"> <New class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath">/</Set> <Set name="war">./web</Set> <Call name="setInitParameter"> <Arg>org.eclipse.jetty.servlet.Default.dirAllowed </Arg> <Arg>false</Arg> </Call> </New> </Set> </New> </Item> </Array> </Set> </New> </Item>
<Item> <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler" /> </Item>
<Item> <New class="org.eclipse.jetty.server.handler.RequestLogHandler"> <Set name="requestLog"> <New class="org.eclipse.jetty.server.NCSARequestLog"> <Set name="filename"> logs/yyyy_mm_dd.jetty_request.log </Set> <Set name="filenameDateFormat">yyyy_MM_dd</Set> <Set name="LogTimeZone">GMT</Set> <Set name="retainDays">90</Set> <Set name="append">true</Set> <Set name="logLatency">true</Set> </New> </Set> </New> </Item> </Array> </Set> </New> </Set> </New> </Set> </Configure>
|