Mule
  1. Mule
  2. MULE-5758

Specifying a host in default JMX config doesn't work

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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:
      MULE-7614Deprecate host attribute of management:jmx-default-config
      MULE-2083Improve handling of global (default) beans in config
      MULE-2105Can't specify host/port parameters for RMI registry and JMX agent
      MULE-5582JMX credentials are ignored on the server
      MULE-1440Improve JMX remoting support on multi-NIC machines
      MULE-134Improve Jmx support
      MULE-6197overwrite SFTP strategy doesn't work
      MULE-3270The registerMx4jAdapter attribute of jmx-default-config does not map to a object attribute
      MULE-5011Config for app 'default' not found
      MULE-3315No way to configure persistence strategy with mule config and default doesn't persist

      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>

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development