glassfish
  1. glassfish
  2. GLASSFISH-19182

[Perf] Make number of Grizzly Selector threads configurable

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0_dev
    • Component/s: grizzly-kernel
    • Labels:
      None
    • Environment:

      Any OS/hardware

      Description

      Currently its not possible to configure number of Grizzly selector threads. Its default is based on number of processors on the machine. Please make if configurable through Glassfish admin so that user can increase or descrease the count based on need. This can be particularly useful with performance tests and become a suggested performance tuning.

        Activity

        Hide
        Ryan Lubke added a comment -

        It seems I was wrong. You can configure the number of selector threads at the transport level by using the acceptor-threads attribute on the transport. By default, this value is 1. I didn't dig further at the time, as I incorrectly assumed that that value must not be being used (based on our discussion). After checking the code in preparation to work on this, I saw that it was being used properly and confirmed it at runtime. However, the ORBConnectorStartup isn't setting any limits and as such, it's using the default algorithm -> number of selectors == number of processors.

        Show
        Ryan Lubke added a comment - It seems I was wrong. You can configure the number of selector threads at the transport level by using the acceptor-threads attribute on the transport. By default, this value is 1. I didn't dig further at the time, as I incorrectly assumed that that value must not be being used (based on our discussion). After checking the code in preparation to work on this, I saw that it was being used properly and confirmed it at runtime. However, the ORBConnectorStartup isn't setting any limits and as such, it's using the default algorithm -> number of selectors == number of processors.
        Hide
        Ryan Lubke added a comment -

        Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/ServiceInitializerListener.java
        Transmitting file data .
        Committed revision 56644.

        Show
        Ryan Lubke added a comment - Sending nucleus/core/kernel/src/main/java/com/sun/enterprise/v3/services/impl/ServiceInitializerListener.java Transmitting file data . Committed revision 56644.

          People

          • Assignee:
            Ryan Lubke
            Reporter:
            deep_singh
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: