[
https://issues.jboss.org/browse/REMJMX-84?page=com.atlassian.jira.plugin....
]
Piotr Findeisen commented on REMJMX-84:
---------------------------------------
The reason seems simple:
{code:java|title=org.jboss.remotingjmx.RemotingConnector.internalConnect}
// Now open the channel
final IoFuture<Channel> futureChannel = connection.openChannel(serviceName,
OptionMap.EMPTY);
IoFuture.Status result = futureChannel.await(5, TimeUnit.SECONDS); //
<-- 5 seconds
if (result == IoFuture.Status.DONE) {
channel = futureChannel.get();
} else if (result == IoFuture.Status.FAILED) {
throw new IOException(futureChannel.getException());
} else {
throw new RuntimeException("Operation failed with status " + result);
}
{code}
As you see there is a hard-coded timeout of 5 seconds. I changed the timeout and now
I'm able to connect. Apparently in some cases the connection takes up to 10 seconds!
This is so even though the TCP-level connect takes 0.2s -- the 5 s timeout seems to cover
_much_ more than just TCP connect.
(You can see my exact changes @
https://github.com/syncron/remoting-jmx/commit/32b35058230402b7b6a03ef1e3...)
Jboss JMX: Operation failed with status WAITING
------------------------------------------------
Key: REMJMX-84
URL:
https://issues.jboss.org/browse/REMJMX-84
Project: Remoting JMX
Issue Type: Bug
Environment: jboss-as-7.1.1.Final on windows server
Reporter: Abhishek Apoorva
Assignee: David Lloyd
Version : jboss-as-7.1.1.Final on windows server
I am getting below mentioned strange issue intermittently while fetching
Jboss JMX Mbean.
Can anyone help me to find the real cause of the issue? Secong thing is why it is coming
intermittently either it should come always or it should not come at all.
JMXConnectorFactory.connect(serviceURL, environment);
While executing above mentioned line system is throwing below mentioned exception.
{noformat}
May 08 02:30:53:375 [DC#0, jboss] java.lang.RuntimeException: Operation failed with
status WAITING
at
org.jboss.remotingjmx.RemotingConnector.internalRemotingConnect(RemotingConnector.java:216)
at org.jboss.remotingjmx.RemotingConnector.internalConnect(RemotingConnector.java:143)
at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:94)
at javax.management.remote.JMXConnectorFactory.connect(Unknown Source)
at
com.nimsoft.nimbus.probe.application.jboss.JmxConnection.createConnection(JmxConnection.java:68)
at
com.nimsoft.nimbus.probe.application.jsr160.Entity.createConnection(Entity.java:1772)
at com.nimsoft.nimbus.probe.application.jsr160.Entity.getValue(Entity.java:1567)
at
com.nimsoft.nimbus.probe.application.extractbase.Extract.processMonitor(Extract.java:1324)
at
com.nimsoft.nimbus.probe.application.extractbase.Extract.processResource(Extract.java:1908)
at
com.nimsoft.nimbus.probe.application.extractbase.Extract$DataCollector.run(Extract.java:1158)
at java.lang.Thread.run(Unknown Source)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)