Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.1.2
-
Fix Version/s: Bug Backlog
-
Component/s: Modules: Management / JMX
-
Labels:None
-
Environment:
Java Sun Hotspot 1.6.0.22, Windows XP
-
User impact:Low
-
Configuration:
-
Similar Issues:None
Description
I can't connect to JMX server inside Mule using JConsole remote process when the host attribute of management:jmx-default-config is specified as 0.0.0.0.
The remote process URL used in JConsole is:
service:jmx:rmi:///jndi/rmi://localhost:1098/server
Connecting to the local process works just fine.
Using netstat -a -n shows that Mule is listening on port 1098.
Trying to connect remotely doesn't work either by specifying the hostname in the JConsole string, e.g.
service:jmx:rmi:///jndi/rmi://akl0mw304:1098/server
A Wireshark trace shows some network interaction on port 1098 until JConsole closes the socket.
Note that this works fine when specifying JMX via the agents this works fine. For example:
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:management="http://www.mulesoft.org/schema/mule/management"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
http://www.mulesoft.org/schema/mule/management http://www.mulesoft.org/schema/mule/management/3.1/mule-management.xsd
">
<management:jmx-server >
<management:connector-server url="service:jmx:rmi:///jndi/rmi://0.0.0.0:1098/server" rebind="false" />
</management:jmx-server>
<management:rmi-server serverUri="rmi://0.0.0.0:1098" createRegistry="true" />
</mule>