Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-5668

Use fewer acceptor threads for Jetty

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.1, 2.2.2
    • Jetty
    • Security Level: public (Regular issues)
    • None
    • Only tested on OS X 1.6 with Java 1.6

    • Patch Available

    Description

      Geronimo applies the maxThreads parameter as the number of acceptor threads in Jetty, with a default value of 50. With newer versions (7.2.0) of Jetty this gives the following warning during startup:

      1. Acceptors should be <=2*availableProcessors

      Server shutdowns are also very slow, it takes about 1 second to stop each acceptor thread.

      The attached patch sets the number of acceptor threads to 2 per connector (HTTP, HTTPS and AJP), and exposes this and the acceptor queue size (50) as a parameter in config-substitutions.properties.

      Attachments

        1. geronimo-2.2-1027647-jetty-acceptors.patch
          4 kB
          Trygve Sanne Hardersen
        2. geronimo-2.2-1028765-jetty-trunk.patch
          2 kB
          Trygve Sanne Hardersen
        3. geronimo-2.2-1035896-jetty-7.2.1.patch
          4 kB
          Trygve Sanne Hardersen

        Activity

          People

            genspring Lin Quan Jiang
            hypobyte Trygve Sanne Hardersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: