summaryrefslogtreecommitdiffstatsabout
blob: 060919a8d3c60f90935f8aeb9ac87c4f1a63e31f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">

<!-- =============================================================== -->
<!-- Mixin the Low Resources Monitor                                 -->
<!-- =============================================================== -->

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Call name="addBean">
    <Arg>
      <New class="org.eclipse.jetty.server.LowResourceMonitor">
        <Arg name="server"><Ref refid='Server'/></Arg>
        <Set name="period"><Property name="lowresources.period" default="1000"/></Set>
        <Set name="lowResourcesIdleTimeout"><Property name="lowresources.lowResourcesIdleTimeout" default="200"/></Set>
        <Set name="monitorThreads"><Property name="lowresources.monitorThreads" default="true"/></Set>
        <Set name="maxConnections"><Property name="lowresources.maxConnections" default="0"/></Set>
        <Set name="maxMemory"><Property name="lowresources.maxMemory" default="0"/></Set>
        <Set name="maxLowResourcesTime"><Property name="lowresources.maxLowResourcesTime" default="5000"/></Set>
      </New>
    </Arg>
  </Call>
</Configure>