无法将Jvisual Vm与Jboss EAP 6.1集成

时间:2017-08-17 10:37:57

标签: jboss jvisualvm

我无法将JVisualVM与jboss EAP 6.1集成。以下是我完成的步骤:     编辑了启动文件并添加了下面的参数 -     JAVA_OPTS =" $ JAVA_OPTS -Dcom.sun.management.jmxremote = true -Dcom.sun.management.jmxremote.port = 3614 -Dcom.sun.management.jmxremote.authenticate = false -Dcom.sun.management.jmxremote .ssl =假"

getAccountId(accessToken)

1 个答案:

答案 0 :(得分:0)

要将JVisualVM连接到JBoss,您需要将jboss-cli-client.jar添加到类路径中:

$JAVA_HOME/bin/jvisualvm -cp:a $JBOSS_HOME/bin/client/jboss-cli-client.jar

如果您的EAP版本中没有此jar,那么您必须将$JBOSS_HOME/modules下的以下模块添加到类路径中:

org/jboss/remoting3/remoting-jmx org/jboss/remoting3 org/jboss/logging org/jboss/xnio org/jboss/xnio/nio org/jboss/sasl org/jboss/marshalling org/jboss/marshalling/river org/jboss/as/cli org/jboss/staxmapper org/jboss/as/protocol org/jboss/dmr org/jboss/as/controller-client org/jboss/threads org/jboss/as/controller

This博文有一个可以用于此目的的脚本。如果您是注册客户,您还可以下载脚本here