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

JMX mbean 'Thread Pools' and 'Connectors' for Jetty are not registered if CXF endpoint is configured with engine-factory element having threadingParameters.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.1
    • Fix Version/s: 3.2.2
    • Component/s: OSGi
    • Labels:
      None
    • Environment:

      ALL

    • Estimated Complexity:
      Moderate

      Description

      • Unzip project reproducer_02005132.zip.
      • Extract it and build it using `mvn clean install`.
      • Deploy it with Red Hat JBoss Fuse 6.3.0 environment using command
        osgi:install -s mvn:org.jboss.quickstarts.fuse/cxf-camel-cxf-code-first-1/6.3.0.redhat-310
        features:install jolokia
        
      • We can see this on Hawtio GUI for Jetty Tab within Hawtio -> Jetty -> Thread Pools.
      • We can even check using below jolokia request.
      • Now if we execute below jolokia request, we don't find the threading details for the CXF endpoint.
        [cpandey@cpandey bin]$ curl -H "Content-Type: application/json" -X POST http://localhost:8181/jolokia -d '\{"type":"read","mbean":"org.eclipse.jetty.util.thread:type=queuedthreadpool,*"}' --user admin:admin|jq
         % Total % Received % Xferd Average Speed Time Time Time Current
         Dload Upload Total Spent Left Speed
        100 503 0 424 100 79 37952 7071 --:--:-- --:--:-- --:--:-- 38545
        {
         "request": {
         "mbean": "org.eclipse.jetty.util.thread:type=queuedthreadpool,*",
         "type": "read"
         },
         "value": {
         "org.eclipse.jetty.util.thread:id=0,type=queuedthreadpool": {
         "threadsPriority": 5,
         "lowOnThreads": false,
         "queueSize": 0,
         "stopTimeout": 5000,
         "minThreads": 8,
         "threads": 8,
         "daemon": false,
         "busyThreads": 6,
         "idleTimeout": 60000,
         "name": "qtp1594445918",
         "idleThreads": 2,
         "state": "STARTED",
         "maxThreads": 200
         }
         },
         "timestamp": 1516807021,
         "status": 200
        }
        [cpandey@cpandey bin]$ 
        
      • However, if we deploy CXF application without threadingParameters and httpj:engine-factory element, than we can see the entry registered.
        [cpandey@cpandey bin]$ curl -H "Content-Type: application/json" -X POST http://localhost:8181/jolokia -d '\{"type":"read","mbean":"org.eclipse.jetty.util.thread:type=queuedthreadpool,*"}' --user admin:admin|jq
         % Total % Received % Xferd Average Speed Time Time Time Current
         Dload Upload Total Spent Left Speed
        100 1077 0 998 100 79 53884 4265 --:--:-- --:--:-- --:--:-- 55444
        {
         "request": {
         "mbean": "org.eclipse.jetty.util.thread:type=queuedthreadpool,*",
         "type": "read"
         },
         "value": {
         "org.eclipse.jetty.util.thread:id=1,type=queuedthreadpool": {
         "threadsPriority": 5,
         "lowOnThreads": false,
         "queueSize": 0,
         "stopTimeout": 30000,
         "minThreads": 8,
         "threads": 8,
         "daemon": false,
         "busyThreads": 8,
         "idleTimeout": 60000,
         "name": "qtp313139408",
         "idleThreads": 0,
         "state": "STOPPED",
         "maxThreads": 200
         },
         "org.eclipse.jetty.util.thread:id=2,type=queuedthreadpool": {
         "threadsPriority": 5,
         "lowOnThreads": false,
         "queueSize": 0,
         "stopTimeout": 30000,
         "minThreads": 8,
         "threads": 8,
         "daemon": false,
         "busyThreads": 5,
         "idleTimeout": 60000,
         "name": "qtp522528762",
         "idleThreads": 3,
         "state": "STARTED",
         "maxThreads": 200
         },
         "org.eclipse.jetty.util.thread:id=0,type=queuedthreadpool": {
         "threadsPriority": 5,
         "lowOnThreads": false,
         "queueSize": 0,
         "stopTimeout": 5000,
         "minThreads": 8,
         "threads": 8,
         "daemon": false,
         "busyThreads": 6,
         "idleTimeout": 60000,
         "name": "qtp1594445918",
         "idleThreads": 2,
         "state": "STARTED",
         "maxThreads": 200
         }
         },
         "timestamp": 1516807327,
         "status": 200
        }
        
        

        Attachments

        1. reproducer.zip
          10 kB
          chandra shekhar pandey

          Activity

            People

            • Assignee:
              ffang Freeman Yue Fang
              Reporter:
              chandra_shekhar chandra shekhar pandey
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: