Java VisualVM
当 jboss 服务器使用选项 -b 0.0.0.0
运行时无法连接 Jboss 服务器。
jboss 运行脚本 - run.sh -c web -b 0.0.0.0
当我尝试用这样的方式运行jboss时 - run.sh -c web -b {MyIp}
然后Java VisualVM就可以连接jboss服务器了。
任何人都可以帮助我如何在 jboss 使用第一个选项运行时进行连接(-b 0.0.0.0)
我在 jboss 的 run.conf
文件中使用此配置
JAVA_OPTS="$JAVA_OPTS -XX:PermSize=256m -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=8077 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
最佳答案
将此添加到JAVA_OPTS
JAVA_OPTS="$JAVA_OPTS -XX:PermSize=256m -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=8077 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
-Djava.rmi.server.hostname=0.0.0.0"
使用您的系统IP
,而不是0.0.0.0
。
关于Java VisualVM 无法连接到 Jboss,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15675712/