Configuring Java Workload Explorer to monitoring OpenJDK / JBoss EAP 6.x

Matheus Sanches

    Hi,

     

    I trying to monitoring the JVM with Workload Explorer but when I click on targets he don't show the JBoss env, only my GC Domain (EMGC_GCDomain - EM Cloud Control13c).

     

    What I change on my env:

     

    domain.conf - Slave

    Include:   JAVA_OPTS="$JAVA_OPTS -agentpath:/opt/redhat/eap/domain/configuration/libjamcapability.so"

    On startup script service:     su - $JBOSS_USER -c "LAUNCH_JBOSS_IN_BACKGROUND=1 JBOSS_PIDFILE=$JBOSS_PIDFILE $JBOSS_SCRIPT -cp /opt/redhat/eap/domain/configuration/jamagent.war jamagent.jamrun JVMD_Agent" 2>&1 > $JBOSS_CONSOLE_LOG &

     

    Who can I get the agent? :

    Setup -> Middleware Management -> Select a Server and Click in Configure -> Go to "JVMs e Pools" -> Select a pool and click in "Downloads"

     

    After jboss services was started the terminal display this message:

     

    # [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at ../../../src/share/instrument/JPLISAgent.c line: 491

    [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "success" at ../../../src/share/instrument/InvocationAdapter.c line: 399

    [Server:server-one] Agent failed to start!

    [Server:server-one] <7-26-2016 11:29:53.480> <JVMDAgent|jamagent.c:1293> <BCI Mode is Not enabled. All Local would be fetched through jvmti/re>

    # [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at ../../../src/share/instrument/JPLISAgent.c line: 491

    [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "success" at ../../../src/share/instrument/InvocationAdapter.c line: 399

    [Server:server-one] Agent failed to start!

    [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at ../../../src/share/instrument/JPLISAgent.c line: 491

    [Server:server-one] *** java.lang.instrument ASSERTION FAILED ***: "success" at ../../../src/share/instrument/InvocationAdapter.c line: 399

    [Server:server-one] Agent failed to start!

    [Server:server-one] <7-26-2016 13:46:06.966> <JVMDAgent|jamagent.c:1293> <BCI Mode is Not enabled. All Local would be fetched through jvmti/re>

     

    Is it possible configure EM to monitoring JBoss JVM (OpenJDK or Oracle JDK)?

     

    Thanks