JMX Remote Connection
yannick_yr.inscription Jan 24, 2012 4:48 AMHello all,
I try to connect to my activemq-broker, using JConsole. But JConsole always return "connection failed".
I try to connect with the JMX URL:
service:jmx:rmi:///jndi/rmi://:1099/karaf-root
log: smx
pass: smx
Looking at the log, i see that the connection is opened, then closed few seconds later:
10:27:45,028 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint done.
10:27:48,045 | DEBUG | n(25)-10.70.0.50 | tcp | - - | RMI TCP Connection(25)-10.70.0.50: accepted socket from
10:27:48,053 | DEBUG | n(25)-10.70.0.50 | tcp | - - | RMI TCP Connection(25)-10.70.0.50: (port 1099) op = 80
10:27:49,274 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | queue://camel.timer expiring messages ..
10:27:49,275 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | camel.timer toPageIn: 0, Inflight: 0, pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
10:27:49,275 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | queue://camel.timer expiring messages done.
10:27:49,338 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | queue://camel.timer expiring messages ..
10:27:49,338 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | camel.timer toPageIn: 0, Inflight: 0, pagedInMessages.size 0, enqueueCount: 0, dequeueCount: 0
10:27:49,338 | DEBUG | roker] Scheduler | Queue | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | queue://camel.timer expiring messages done.
10:27:50,030 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint started.
10:27:50,038 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint done.
10:27:55,041 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint started.
10:27:55,048 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint done.
10:28:00,050 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint started.
10:28:00,058 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint done.
10:28:03,063 | DEBUG | n(25)-10.70.0.50 | tcp | - - | RMI TCP Connection(25)-10.70.0.50: (port 1099) connection closed
10:28:03,063 | DEBUG | n(25)-10.70.0.50 | tcp | - - | RMI TCP Connection(25)-10.70.0.50: close connection
10:28:05,059 | DEBUG | heckpoint Worker | MessageDatabase | 53 - org.apache.activemq.activemq-core - 5.5.1.fuse-01-13 | Checkpoint started.
I didn't found any solution in this forum. I just saw that no specific configuration is needed. right?
I tried to add useJmx="true" in my spring broker configuration.
I tried also to modify the bin/start file, adding
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=1099 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
But without success.
Please, can you help me to find what is wrong?
Thanks a lot