Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added information about needing setStopAtShutdown method.


As soon as the shutdown command is given, the container will close the connectors so that they do not accept any more inbound connections. This will inform most load balancers that the server is no longer part of the cluster. The contexts are closed so that they do not accept any more requests, but the requests currently inside the container will drain out and the Server instance will shutdown after the grace period expires.

You must also call the setStopAtShutdown(boolean) method with a value of true for the grace period to take effect.

Code Block

<Set name="stopAtShutdown">true</Set>

APIs For Shutdown Implementation


Contact the core Jetty developers at
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery