Announcement Announcement Module
Collapse
No announcement yet.
Couldnt connect to JMX remote with jconsole Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Couldnt connect to JMX remote with jconsole

    I developing under Spring3.1 standalone env.

    I am trying to connect my application remotely via jconsole.
    It's working locally but when I deploy my application into the linux machine it gets time out.


    I am using Daemon in order to run my environment.

    this is what I add in the run.sh script:

    Code:
    -Dcom.sun.management.jmxremote \
    -Dcom.sun.management.jmxremote.port=6969 \
    -Dcom.sun.management.jmxremote.ssl=false \
    -Dcom.sun.management.jmxremote.authenticate=false \
    com.mypackage.daemon.FixDaemon

    and inside applicationContext.xml:

    Code:
    <context:mbean-server />
    <context:mbean-export />
    now on the linux machine after doing netstat thats what we see:

    Code:
    [root@ logs]# netstat -an | grep 6969
    tcp        0      0 :::6969                     :::*                        LISTEN
    so it's seems like it does listening.

    but when I add my ip:6969 inside the jconsole interface I get connection failed popup.

    any idea what am I doing wrong?

    thanks, ray.

  • #2
    Check whether there is any firewall on the server. The port 6969 as you set is a management port only. JMX uses RMI, there is another randomly choosen port for actual data transfer.
    Run jconsole with -debug parameter, this usualy helps to figure out why things don't work as expected.

    Comment

    Working...
    X