[ 
https://issues.apache.org/jira/browse/CXF-7628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348681#comment-16348681
 ] 

ASF GitHub Bot commented on CXF-7628:
-------------------------------------

1984shekhar opened a new pull request #374: [CXF-7628]
URL: https://github.com/apache/cxf/pull/374
 
 
   Enable JMX connector and threading-parameters mbeans for endpoints with 
custom threading parameters configured in blueprint xml.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> JMX mbean 'Thread Pools' and 'Connectors' for Jetty are not registered if CXF 
> endpoint is configured with engine-factory element having threadingParameters.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-7628
>                 URL: https://issues.apache.org/jira/browse/CXF-7628
>             Project: CXF
>          Issue Type: Bug
>          Components: OSGi
>    Affects Versions: 3.2.1
>         Environment: ALL
>            Reporter: chandra shekhar pandey
>            Priority: Minor
>         Attachments: reproducer.zip
>
>
> - 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
> {code}
> osgi:install -s 
> mvn:org.jboss.quickstarts.fuse/cxf-camel-cxf-code-first-1/6.3.0.redhat-310
> features:install jolokia
> {code}
> - 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.
> {code}
> [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]$ 
> {code}
> - However, if we deploy CXF application without threadingParameters and 
> httpj:engine-factory element, than we can see the entry registered.
> {code}
> [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
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to