Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-5758

Specifying a host in default JMX config doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix or Usage Issue
    • Affects Version/s: 3.1.2
    • Fix Version/s: None
    • Labels:
    • Environment:

      Java Sun Hotspot 1.6.0.22, Windows XP

    • User impact:
      Low
    • Configuration:
      Hide

      <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-default-config host="0.0.0.0" port="1098"/>

      </mule>

      Show
      <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-default-config host="0.0.0.0" port="1098"/> </mule>
    • Similar Issues:

      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>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vromero Victor Romero
                Reporter:
                marksimsmith Mark Sim-Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: