<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

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

<Configure id="Server" class="org.eclipse.jetty.server.Server">
  <Call name="addBean">
    <Arg>
      <New id="lowResourceMonitor" class="org.eclipse.jetty.server.LowResourceMonitor">
        <Arg name="server"><Ref refid='Server'/></Arg>
        <Set name="period" property="jetty.lowresources.period"/>
        <Set name="lowResourcesIdleTimeout" property="jetty.lowresources.idleTimeout"/>
        <Set name="monitorThreads" property="jetty.lowresources.monitorThreads"/>
        <Set name="maxMemory" property="jetty.lowresources.maxMemory"/>
        <Set name="maxLowResourcesTime" property="jetty.lowresources.maxLowResourcesTime"/>
        <Set name="acceptingInLowResources" property="jetty.lowresources.accepting"/>
      </New>
    </Arg>
  </Call>
</Configure>
