Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3629

mbean WorkQueueManager misses information about thread pool status

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.6, 2.4.2, 2.5
    • Core
    • None

    Description

      WorkQueueManager can be used to monitor and adjust WorkQueue thread pool.
      The only parameters that can be changed are: High/Low WaterMark - concern thread numbers
      The only values showing current status concern queue size.

      Obviously Mbean misses information about current thread usage.

      Please add following methods to the class org.apache.cxf.workqueue.WorkQueueImplMBeanWrapper to allow observe thread usage also.

      @ManagedAttribute(description = "The largest number of threads")
      public int getLargestPoolSize() {
      return aWorkQueue.getLargestPoolSize();
      }

      @ManagedAttribute(description = "The current number of threads")
      public int getPoolSize() {
      return aWorkQueue.getPoolSize();
      }

      @ManagedAttribute(description = "The number of threads currently busy")
      public int getActiveCount() {
      return aWorkQueue.getActiveCount();
      }

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            repp Peter Repp
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: