Results 1 to 2 of 2

Thread: Couldnt connect to JMX remote with jconsole

Hybrid View

  1. #1

    Default 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. #2
    Join Date
    Sep 2012
    Location
    Czech Republic
    Posts
    39

    Default

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •