Jolokia does not expose jboss.as:* ?

classic Classic list List threaded Threaded
2 messages Options
arimus arimus
Reply | Threaded
Open this post in threaded view
|

Jolokia does not expose jboss.as:* ?

This is on a JBoss 6.2 EAP instance. I have verified that the mbean is there and I can query it with jconsole. I do connect with an admin user there though. I've tried both the war and agent with same result (404 and not listed in the overall list). Everything except jboss.as:* is there though.

I'm trying to monitor datasource connection pools (e.g. jboss.as:subsystem=datasources/data-source=MySqlDS/statistics=pool) per some of the instructions and examples.

curl http://localhost:8080/jolokia/version | json_reformat

{
    "timestamp": 1503459801,
    "status": 200,
    "request": {
        "type": "version"
    },
    "value": {
        "protocol": "7.2",
        "config": {
            "maxDepth": "15",
            "maxCollectionSize": "0",
            "maxObjects": "0",
            "discoveryEnabled": "true",
            "agentContext": "/jolokia",
            "historyMaxEntries": "10",
            "agentId": "172.19.0.6-103051-6b846c6-jvm",
            "agentType": "jvm",
            "debug": "false",
            "debugMaxEntries": "100"
        },
        "agent": "1.3.7",
        "info": {
            "product": "jboss",
            "vendor": "RedHat",
            "version": "7"
        }
    }
}
but...

curl "http://localhost:8080/jolokia/read/jboss.as:subsystem=datasources/data-source=MySqlDS/statistics=pool?ignoreErrors=true" | json_reformat

{
    "error_type": "javax.management.InstanceNotFoundException",
    "error": "javax.management.InstanceNotFoundException : jboss.as:subsystem=datasources",
    "status": 404,
    "request": {
        "mbean": "jboss.as:subsystem=datasources",
        "path": "statistics=pool",
        "attribute": "data-source=MySqlDS",
        "type": "read"
    },
    "stacktrace": "javax.management.InstanceNotFoundException: jboss.as:subsystem=datasources\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)\n\tat com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:106)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:37)\n\tat org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:89)\n\tat org.jolokia.backend.MBeanServerExecutorLocal.handleRequest(MBeanServerExecutorLocal.java:109)\n\tat org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:161)\n\tat org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:99)\n\tat org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:413)\n\tat org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:158)\n\tat org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197)\n\tat org.jolokia.http.HttpRequestHandler.handleGetRequest(HttpRequestHandler.java:86)\n\tat org.jolokia.jvmagent.handler.JolokiaHttpHandler.executeGetRequest(JolokiaHttpHandler.java:265)\n\tat org.jolokia.jvmagent.handler.JolokiaHttpHandler.doHandle(JolokiaHttpHandler.java:230)\n\tat org.jolokia.jvmagent.handler.JolokiaHttpHandler.handle(JolokiaHttpHandler.java:178)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n\tat sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80)\n\tat sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)\n\tat com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77)\n\tat sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat java.lang.Thread.run(Thread.java:748)\n"
}
Any assistance is much appreciated.
markah markah
Reply | Threaded
Open this post in threaded view
|

Re: Jolokia does not expose jboss.as:* ?

I'm using 6.4 .. and I have the datasource in a different location.
can you use the curl http://localhost:8080/jolokia/list | grep -i mysqlds and verify the location?