Twiddle Standalone无法正常工作

时间:2015-06-11 14:31:11

标签: wildfly-8

我们在Wildfly 8.2中使用Twiddle独立https://developer.jboss.org/people/arnoldjohansson/blog/2012/04/14/twiddle-standalone进行JMX监控。根据自述文件说明,我们已下载链接https://github.com/swesource/twiddle-standalone中提供的zip文件,并在twiddle.sh中设置JBOSS_HOME。当我使用standalone.sh启动wildfly服务器并尝试运行以下命令时

twiddle.sh -s service:jmx:remoting -jmx://127.0.0.1:9999 get java.lang:type = ClassLoading

我得到如下错误:

19:18:22,209 INFO  [xnio] XNIO version 3.3.0.Final
19:18:22,277 INFO  [nio] XNIO NIO Implementation Version 3.3.0.Final
19:18:22,318 INFO  [remoting] JBoss Remoting version 4.0.6.Final
19:18:22,534 ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: Connection refused; - nested throwable: (java.net.ConnectException: Connection refused)
    at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:221)
    at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:64)
    at org.jboss.console.twiddle.command.GetCommand.execute(GetCommand.java:149)
    at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:370)
Caused by: java.net.ConnectException: Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
    at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:319)
    at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
    at ...asynchronous invocation...(Unknown Source)
    at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:272)
    at org.jboss.remoting3.EndpointImpl.doConnect(EndpointImpl.java:253)
    at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:351)
    at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:335)
    at org.jboss.remotingjmx.RemotingConnector.internalRemotingConnect(RemotingConnector.java:232)
    at org.jboss.remotingjmx.RemotingConnector.internalConnect(RemotingConnector.java:151)
    at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:102)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
    at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:322)
    at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:331)
    at org.jboss.console.twiddle.Twiddle.access$400(Twiddle.java:60)
    at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:217)
    ... 3 more

任何人都可以建议会出现什么问题并帮助我采取适当的措施。

0 个答案:

没有答案