[jboss-user] [Installation, Configuration & DEPLOYMENT] - JConsole / jmxremote connection problems

Rob@netplay.co.uk do-not-reply at jboss.com
Thu Nov 6 03:48:00 EST 2008


I have followed the setup steps identified in http://www.jboss.org/community/docs/DOC-12499 that primarily indicates adding the following details to the run.conf (or alternatively run.sh)


  | # Enable the jconsole agent remotely on port 12345
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.port=12345"
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.authenticate=false"
  | JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote.ssl=false"
  | 

The JBoss is 4.2.2.GA running on a Linux box (Centos I believe) and I'm connecting using a remote Windows machine using JDK 1.6 JConsole.

But when I try to connect I receive the dialog "Connection Failed: Retry? The connection to <IP address> did not succeed.  Would you like to try again?".

I can confirm that Telnet to the port works, plus on the Unix machine I've run tcpdump and confirmed JConsole is in fact talking to it, but then abandons part-way through.  It's almost as thought there is some authentication going on, or perhaps firewall issues - but from what I understand this box is 'open' for all connections.

Does anyone have any pointers?

In addition, by experimentation I added other system properties based on searches in other forums, so right now I have these settings being output...

(addition of jboss.platform.mbeanserver and javax.management.builder.initial)


  | =========================================================================
  | 
  |   JBoss Bootstrap Environment
  | 
  |   JBOSS_HOME: /usr/local/jboss
  | 
  |   JAVA: /usr/lib/java/bin/java
  | 
  |   JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djboss.platform.mbeanserver -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl -Dcom.sun.management.jmxremote.port=12345 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
  | 
  |   CLASSPATH: /usr/local/jboss/bin/run.jar
  | 
  | =========================================================================
  | 

If anyone can decifer the tcpdump, then please feel free ;-)


  | tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
  | listening on eth0, link-type EN10MB (Ethernet), capture size 2048 bytes
  | 08:44:08.671640 IP 192.168.0.0.16565 > <hidden_ip>.12345: S 3360578768:3360578768(0) win 65535 <mss 1380,nop,nop,sackOK>
  |         0x0000:  4500 0030 5bfe 4000 7e06 6ae6 c0a8 0000  E..0[. at .~.j.....
  |         0x0010:  ac1a c920 40b5 3039 c84e 5cd0 0000 0000  .... at .09.N\.....
  |         0x0020:  7002 ffff b77e 0000 0204 0564 0101 0402  p....~.....d....
  | 08:44:08.671677 IP <hidden_ip>.12345 > 192.168.0.0.16565: S 2992145961:2992145961(0) ack 3360578769 win 5840 <mss 1460,nop,nop,sackOK>
  |         0x0000:  4500 0030 0000 4000 4006 04e5 ac1a c920  E..0.. at .@.......
  |         0x0010:  c0a8 0000 3039 40b5 b258 8629 c84e 5cd1  ....09 at ..X.).N\.
  |         0x0020:  7012 16d0 67cb 0000 0204 05b4 0101 0402  p...g...........
  | 08:44:08.679632 IP 192.168.0.0.16565 > <hidden_ip>.12345: . ack 1 win 65535
  |         0x0000:  4500 0028 5bff 4000 7e06 6aed c0a8 0000  E..([. at .~.j.....
  |         0x0010:  ac1a c920 40b5 3039 c84e 5cd1 b258 862a  .... at .09.N\..X.*
  |         0x0020:  5010 ffff ab5f 0000 0000 0000 0000       P...._........
  | 08:44:08.681141 IP 192.168.0.0.16565 > <hidden_ip>.12345: P 1:101(100) ack 1 win 65535
  |         0x0000:  4500 008c 5c00 4000 7e06 6a88 c0a8 0000  E...\. at .~.j.....
  |         0x0010:  ac1a c920 40b5 3039 c84e 5cd1 b258 862a  .... at .09.N\..X.*
  |         0x0020:  5018 ffff 4ae6 0000 8062 0103 0100 3900  P...J....b....9.
  |         0x0030:  0000 2000 0004 0100 8000 0005 0000 2f00  ............../.
  |         0x0040:  0033 0000 3200 000a 0700 c000 0016 0000  .3..2...........
  |         0x0050:  1300 0009 0600 4000 0015 0000 1200 0003  ...... at .........
  |         0x0060:  0200 8000 0008 0000 1400 0011 4912 ae43  ............I..C
  |         0x0070:  9bfe 97dd 8f15 bc47 e8c6 2def dac1 215e  .......G..-...!^
  |         0x0080:  b144 3ce1 c881 dbbf 3b13 832e            .D<.....;...
  | 08:44:08.681183 IP <hidden_ip>.12345 > 192.168.0.0.16565: . ack 101 win 5840
  |         0x0000:  4500 0028 3eb8 4000 4006 c634 ac1a c920  E..(>. at .@..4....
  |         0x0010:  c0a8 0000 3039 40b5 b258 862a c84e 5d35  ....09 at ..X.*.N]5
  |         0x0020:  5010 16d0 942b 0000                      P....+..
  | 08:44:08.681246 IP <hidden_ip>.12345 > 192.168.0.0.16565: F 1:1(0) ack 101 win 5840
  |         0x0000:  4500 0028 3eb9 4000 4006 c633 ac1a c920  E..(>. at .@..3....
  |         0x0010:  c0a8 0000 3039 40b5 b258 862a c84e 5d35  ....09 at ..X.*.N]5
  |         0x0020:  5011 16d0 942a 0000                      P....*..
  | 08:44:08.687626 IP 192.168.0.0.16565 > <hidden_ip>.12345: . ack 2 win 65535
  |         0x0000:  4500 0028 5c02 4000 7e06 6aea c0a8 0000  E..(\. at .~.j.....
  |         0x0010:  ac1a c920 40b5 3039 c84e 5d35 b258 862b  .... at .09.N]5.X.+
  |         0x0020:  5010 ffff aafa 0000 0000 0000 0000       P.............
  | 08:44:08.687647 IP 192.168.0.0.16565 > <hidden_ip>.12345: P 101:108(7) ack 2 win 65535
  |         0x0000:  4500 002f 5c03 4000 7e06 6ae2 c0a8 0000  E../\. at .~.j.....
  |         0x0010:  ac1a c920 40b5 3039 c84e 5d35 b258 862b  .... at .09.N]5.X.+
  |         0x0020:  5018 ffff 6ae6 0000 1503 0100 0202 28    P...j.........(
  | 08:44:08.687662 IP <hidden_ip>.12345 > 192.168.0.0.16565: R 2992145963:2992145963(0) win 0
  |         0x0000:  4500 0028 0000 4000 4006 04ed ac1a c920  E..(.. at .@.......
  |         0x0010:  c0a8 0000 3039 40b5 b258 862b 0000 0000  ....09 at ..X.+....
  |         0x0020:  5004 0000 d08a 0000                      P.......
  | 08:44:08.689376 IP 192.168.0.0.16566 > <hidden_ip>.12345: S 2135034393:2135034393(0) win 65535 <mss 1380,nop,nop,sackOK>
  |         0x0000:  4500 0030 5c05 4000 7e06 6adf c0a8 0000  E..0\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a19 0000 0000  .... at .09.B......
  |         0x0020:  7002 ffff 5341 0000 0204 0564 0101 0402  p...SA.....d....
  | 08:44:08.689398 IP <hidden_ip>.12345 > 192.168.0.0.16566: S 2991693387:2991693387(0) ack 2135034394 win 5840 <mss 1460,nop,nop,sackOK>
  |         0x0000:  4500 0030 0000 4000 4006 04e5 ac1a c920  E..0.. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9e4b 7f42 0a1a  ....09 at ..Q.K.B..
  |         0x0020:  7012 16d0 eb72 0000 0204 05b4 0101 0402  p....r..........
  | 08:44:08.699118 IP 192.168.0.0.16566 > <hidden_ip>.12345: . ack 1 win 65535
  |         0x0000:  4500 0028 5c07 4000 7e06 6ae5 c0a8 0000  E..(\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a1a b251 9e4c  .... at .09.B...Q.L
  |         0x0020:  5010 ffff 2f07 0000 0000 0000 0000       P.../.........
  | 08:44:08.699143 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 1:8(7) ack 1 win 65535
  |         0x0000:  4500 002f 5c08 4000 7e06 6add c0a8 0000  E../\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a1a b251 9e4c  .... at .09.B...Q.L
  |         0x0020:  5018 ffff 4c5a 0000 4a52 4d49 0002 4b    P...LZ..JRMI..K
  | 08:44:08.699152 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 8 win 5840
  |         0x0000:  4500 0028 26db 4000 4006 de11 ac1a c920  E..(&. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9e4c 7f42 0a21  ....09 at ..Q.L.B.!
  |         0x0020:  5010 16d0 1830 0000                      P....0..
  | 08:44:08.699738 IP <hidden_ip>.12345 > 192.168.0.0.16566: P 1:19(18) ack 8 win 5840
  |         0x0000:  4500 003a 26dc 4000 4006 ddfe ac1a c920  E..:&. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9e4c 7f42 0a21  ....09 at ..Q.L.B.!
  |         0x0020:  5018 16d0 3610 0000 4e00 0b31 3932 2e31  P...6...N..192.1
  |         0x0030:  3638 2e30 2e30 0000 40b6                 68.0.0.. at .
  | 08:44:08.712109 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 8:27(19) ack 19 win 65517
  |         0x0000:  4500 003b 5c0b 4000 7e06 6ace c0a8 0000  E..;\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a21 b251 9e5e  .... at .09.B.!.Q.^
  |         0x0020:  5018 ffed c8ac 0000 000d 3139 322e 3136  P.........192.16
  |         0x0030:  382e 302e 3131 3800 0000 00              8.0.118....
  | 08:44:08.712614 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 27:77(50) ack 19 win 65517
  |         0x0000:  4500 005a 5c0c 4000 7e06 6aae c0a8 0000  E..Z\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a34 b251 9e5e  .... at .09.B.4.Q.^
  |         0x0020:  5018 ffed d228 0000 50ac ed00 0577 2200  P....(..P....w".
  |         0x0030:  0000 0000 0000 0000 0000 0000 0000 0000  ................
  |         0x0040:  0000 0000 0000 0000 0244 154d c9d4 e63b  .........D.M...;
  |         0x0050:  df74 0006 6a6d 7872 6d69                 .t..jmxrmi
  | 08:44:08.712653 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 77 win 5840
  |         0x0000:  4500 0028 26dd 4000 4006 de0f ac1a c920  E..(&. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9e5e 7f42 0a66  ....09 at ..Q.^.B.f
  |         0x0020:  5010 16d0 17d9 0000                      P.......
  | 08:44:08.713460 IP <hidden_ip>.12345 > 192.168.0.0.16566: P 19:280(261) ack 77 win 5840
  |         0x0000:  4500 012d 26de 4000 4006 dd09 ac1a c920  E..-&. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9e5e 7f42 0a66  ....09 at ..Q.^.B.f
  |         0x0020:  5018 16d0 3703 0000 51ac ed00 0577 0f01  P...7...Q....w..
  |         0x0030:  8bb1 935a 0000 011d 6d8e eb2c 800d 7372  ...Z....m..,..sr
  |         0x0040:  002e 6a61 7661 782e 6d61 6e61 6765 6d65  ..javax.manageme
  |         0x0050:  6e74 2e72 656d 6f74 652e 726d 692e 524d  nt.remote.rmi.RM
  |         0x0060:  4953 6572 7665 7249 6d70 6c5f 5374 7562  IServerImpl_Stub
  |         0x0070:  0000 0000 0000 0002 0200 0074 0016 6874  ...........t..ht
  |         0x0080:  7470 3a2f 2f62 6573 6465 6d6f 3031 3a38  tp://besdemo01:8
  |         0x0090:  3038 332f 7872 001a 6a61 7661 2e72 6d69  083/xr..java.rmi
  |         0x00a0:  2e73 6572 7665 722e 5265 6d6f 7465 5374  .server.RemoteSt
  |         0x00b0:  7562 e9fe dcc9 8be1 651a 0200 0071 007e  ub......e....q.~
  |         0x00c0:  0001 7872 001c 6a61 7661 2e72 6d69 2e73  ..xr..java.rmi.s
  |         0x00d0:  6572 7665 722e 5265 6d6f 7465 4f62 6a65  erver.RemoteObje
  |         0x00e0:  6374 d361 b491 0c61 331e 0300 0071 007e  ct.a...a3....q.~
  |         0x00f0:  0001 7870 7736 000a 556e 6963 6173 7452  ..xpw6..UnicastR
  |         0x0100:  6566 000d 3137 322e 3236 2e32 3031 2e33  ef..172.26.201.3
  |         0x0110:  3200 0096 33b2 276d d65a a162 418b b193  2...3.'m.Z.bA...
  |         0x0120:  5a00 0001 1d6d 8eeb 2c80 0101 78         Z....m..,...x
  | 08:44:08.731097 IP 192.168.0.0.16566 > <hidden_ip>.12345: P 77:92(15) ack 280 win 65256
  |         0x0000:  4500 0037 5c0e 4000 7e06 6acf c0a8 0000  E..7\. at .~.j.....
  |         0x0010:  ac1a c920 40b6 3039 7f42 0a66 b251 9f63  .... at .09.B.f.Q.c
  |         0x0020:  5018 fee8 e8aa 0000 548b b193 5a00 0001  P.......T...Z...
  |         0x0030:  1d6d 8eeb 2c80 0d                        .m..,..
  | 08:44:08.768897 IP <hidden_ip>.12345 > 192.168.0.0.16566: . ack 92 win 5840
  |         0x0000:  4500 0028 26df 4000 4006 de0d ac1a c920  E..(&. at .@.......
  |         0x0010:  c0a8 0000 3039 40b6 b251 9f63 7f42 0a75  ....09 at ..Q.c.B.u
  |         0x0020:  5010 16d0 16c5 0000                      P.......
  | 

Any help will be truly appreciated.

Regards,
Rob.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187216#4187216

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187216



More information about the jboss-user mailing list