Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8781

Infinispan integration with Jolokia is not working - Cannot read agent configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.2.0.Final
    • None
    • Integration
    • None
    • Hide

      1. Create a fresh install from "infinispan/server/integration/build"
      2. Start the server from "build/target/infinispan-server-9.2.0-SNAPSHOT/bin" executing "./standalone.sh --jmx"
      3. Open the http://127.0.0.1:8778/jolokia/version It is not working

      Additional Information:

      • It is not setting the default value for JMX_CONF
        JAVA_OPTS: -server -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager.LogManager -Djava.awt.headless=true -javaagent:/media/diego/06ebb3d5-7e32-49f5-8ca6-2da68b522ff5/git/infinispan/infinispan/server/integration/build/target/infinispan-server-9.2.0-SNAPSHOT/modules/system/layers/base/io/fabric8/agent-bond/main/agent-bond-agent-1.0.2.jar=

      4. Start the server from "build/target/infinispan-server-9.2.0-SNAPSHOT/bin" executing "./standalone.sh --jmx test.conf"

      Additional Information:

      • It is not setting the custom value for JMX_CONF
        JAVA_OPTS: -server -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager.LogManager -Djava.awt.headless=true -javaagent:/media/diego/06ebb3d5-7e32-49f5-8ca6-2da68b522ff5/git/infinispan/infinispan/server/integration/build/target/infinispan-server-9.2.0-SNAPSHOT/modules/system/layers/base/io/fabric8/agent-bond/main/agent-bond-agent-1.0.2.jar=
      Show
      1. Create a fresh install from "infinispan/server/integration/build" 2. Start the server from "build/target/infinispan-server-9.2.0-SNAPSHOT/bin" executing "./standalone.sh --jmx" 3. Open the http://127.0.0.1:8778/jolokia/version It is not working Additional Information: It is not setting the default value for JMX_CONF JAVA_OPTS: -server -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager.LogManager -Djava.awt.headless=true -javaagent:/media/diego/06ebb3d5-7e32-49f5-8ca6-2da68b522ff5/git/infinispan/infinispan/server/integration/build/target/infinispan-server-9.2.0-SNAPSHOT/modules/system/layers/base/io/fabric8/agent-bond/main/agent-bond-agent-1.0.2.jar= 4. Start the server from "build/target/infinispan-server-9.2.0-SNAPSHOT/bin" executing "./standalone.sh --jmx test.conf" Additional Information: It is not setting the custom value for JMX_CONF JAVA_OPTS: -server -server -Xms64m -Xmx512m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman,org.jboss.logmanager.LogManager -Djava.awt.headless=true -javaagent:/media/diego/06ebb3d5-7e32-49f5-8ca6-2da68b522ff5/git/infinispan/infinispan/server/integration/build/target/infinispan-server-9.2.0-SNAPSHOT/modules/system/layers/base/io/fabric8/agent-bond/main/agent-bond-agent-1.0.2.jar=
    • Hide

      The workaround is edit the "bin/jolokia.sh" and change the variable $1 to point out your file configuration.

      Example:
      JAVA_OPTS="$JAVA_OPTS -javaagent:$AGENT_BOND_JAR=agent.conf"

      Or use Bash to execute the stanalone.sh script, e.g. bash ./standalone.sh --jmx.

      Show
      The workaround is edit the "bin/jolokia.sh" and change the variable $1 to point out your file configuration. Example: JAVA_OPTS="$JAVA_OPTS -javaagent:$AGENT_BOND_JAR=agent.conf" Or use Bash to execute the stanalone.sh script, e.g. bash ./standalone.sh --jmx .

      The Jolokia endpoints are not working using the branch master.

              slaskawi@redhat.com Sebastian Ɓaskawiec (Inactive)
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: