Announcement Announcement Module
No announcement yet.
Couldnt connect to JMX remote with jconsole Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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 script:

    Code: \ \ \ \

    and inside applicationContext.xml:

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

    [[email protected] 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.