DX Unified Infrastructure Management

 View Only
  • 1.  How do you monitor JBOSS EAP 6.4 applications ?

    Posted Mar 22, 2017 10:36 AM

    Hello,

     

    We encountered an issue, while using jvm_monitor probe 1.48 and trying to monitor a JBOSS EAP 6.4 application. First problem was exposing/starting the “sun JMX remote” – we have to include some jars on bootclasspath when starting the jvm. After that we notice that not all MBeans are visible in the jvm_monitor.
    More specifically we are unable to monitor the following:
                   Datasource – Should be in: MBean ObjectName jboss.as:subsystem=datasources
                   Transaction – Should be in: MBean ObjectName jboss.as:subsystem=transactions
                   Activesessions  – Should be in: MBean ObjectName jboss.web:type=Manager,path=/<context>,host=default-host
                   BusyThreads   – Should be in: MBean ObjectName jboss.web:type=ThreadPool,name=ajp--<ip>-<port>
                   
    The issue is related to the way the MBeans are accessed from JBOSS EAP 6 onwards. For what we understand Jboss want us to use their Native Management port, allowing connections over remoting-jmx (instead of service:jmx:rmi like the “sun JMX”), consequently changing the connection string.

     

    So we try to access them through the Native Management port, but had no luck. First we tried to connect using the jvm_monitor probe, we tried integrating the loading of the extra jar's and modules, as indicated by RedHat, using the java parameter properties of the probes.
    This resulted in the jvm_monitor not working, probably because it does an internal check on the connection string.
    Changing that in the cfg either resulted in it being corrected, or it complaining about an unkown protocol or malformed connection string.

     

    Next, we tried the jboss probe, It allowed us to see more MBeans when compared to the ones we could see with jvm_monitor connecting to the “sun JMX”, but it did not reveal all the extra beans we needed.

     

    We found an article, relating to CA APM touching on the subject :
    https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.TEC1042397.html. It seems related, but since it’s other product we are not sure if it can be of any help to us.

     

    We opened a case, but were asked to open a feature request/idea, which we did (https://communities.ca.com/ideas/235734889).
    But seeing as it has only two votes, I don't think this going to picked up.

     

    We tried using the jboss probe (latest version 1.4), but were only able to retrieve the ActiveSessions metrics, with all the other counters still missing.
    -    BusyThreads we can see the MBean but it’s attributes are all empty/null;
    -    Datasource & Transaction the MBeans are not visible/accessible;

     

    Now for my questions:
                   How do you monitor JBoss EAP 6.x Mbeans ?
                   Or are you using another product/scripting solution all together ?
                   Is there a way of circumventing this issue ?

     

    We would be very interested to know.
    Thanks to everybody taking the time to comment,

     


    Laurens



  • 2.  Re: How do you monitor JBOSS EAP 6.4 applications ?

    Broadcom Employee
    Posted Mar 24, 2017 05:29 AM

    Hi Laurens,

     

    I noticed that you opened a support case for the same question. We are currently discussing this internally and an engineer will get back to you.

     

    Kind Regards,

     

    Martin Fink

    CA Tech Support



  • 3.  Re: How do you monitor JBOSS EAP 6.4 applications ?

    Posted Mar 27, 2017 07:42 AM

    Hello, Martin,

     

    Yes, indeed, we did open a case surrounding the jboss probe, as well.

    We received the advice to open a feature request/idea, same as for the jvm_monitor probe.

    Which is strange, seeing as we were able to read out these MBeans with the jvm_monitor probe, before.

     

    That is why we are interested to know how the CA Nimsoft community monitors it's JBoss EAP 6.x applications.

    Kind Regards,

     

     

    Laurens



  • 4.  Re: How do you monitor JBOSS EAP 6.4 applications ?

    Posted Oct 31, 2017 03:55 PM

    Hi Dimension Data,

     

    Could you please share how you were able to include some jars on bootclasspath when starting the jvm. I'm getting an error using the following additional java options:

     

    -Xbootclasspath/p:/usr/jboss/jbosseap/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-1.5.4.Final-redhat-1.jar:/usr/jboss/jbosseap/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.1.Final-redhat-1.jar

     

     

    Error occurred during initialization of VM
    java/lang/ClassNotFoundException: error in opening JAR file /usr/jboss/jbosseap/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.1.Final-redhat-1.jar