ActiveMQ
  1. ActiveMQ
  2. AMQ-3718

Thread pool turnover is to heavy due to Executor configuration

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.0
    • Component/s: Broker, Connector
    • Labels:
    • Environment:

      NA

    • Patch Info:
      Patch Available

      Description

      The following files use Executors that are poorly configured for every day use.

      src/main/java/org/apache/activemq/broker/BrokerService.java
      src/main/java/org/apache/activemq/thread/TaskRunnerFactory.java
      src/main/java/org/apache/activemq/transport/nio/SelectorManager.java

      Added suggested patch, but the timings should really be configurable to provide better control.
      The NIO SelectorManager change has shaved time savings of at least 1/6 - 1/4 off some of our long running tests.

      1. threads.png
        42 kB
        Andy Gumbrecht
      2. Executors.patch
        5 kB
        Andy Gumbrecht

        Activity

        Andy Gumbrecht created issue -
        Hide
        Andy Gumbrecht added a comment -

        Patch and thread death image (image not including NIO which was set at 10ms)

        Show
        Andy Gumbrecht added a comment - Patch and thread death image (image not including NIO which was set at 10ms)
        Andy Gumbrecht made changes -
        Field Original Value New Value
        Attachment Executors.patch [ 12514635 ]
        Attachment threads.png [ 12514636 ]
        Hide
        Timothy Bish added a comment -

        Fixed in trunk

        Show
        Timothy Bish added a comment - Fixed in trunk
        Timothy Bish made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.6.0 [ 12317974 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Andy Gumbrecht
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development