<?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>
