activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Green <>
Subject Setup writes wrong default JMX port?
Date Mon, 04 Apr 2011 09:26:07 GMT
Using Ubuntu here, I have run setup which results in a configuration
file. I have to uncomment ACTIVEMQ_SUNJMX_CONTROL in order to provide

However, after doing this I get the following when restarting:

INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
INFO: changing to user 'activemq' to invoke java
INFO: Waiting at least 30 seconds for regular process termination of
pid '1630' :
Java Runtime: Sun Microsystems Inc. 1.6.0_20 /usr/lib/jvm/java-6-openjdk/jre
  Heap sizes: current=253440k  free=252040k  max=253440k
    JVM args: -Xms256M -Xmx256M
-Dactivemq.classpath=/opt/activemq/conf; -Dactivemq.home=/opt/activemq
ACTIVEMQ_HOME: /opt/activemq
ACTIVEMQ_BASE: /opt/activemq
Connecting to pid: 1630
ERROR: java.lang.IllegalArgumentException: JMX URL already specified.

Also occurs when using query, etc. So I did some digging to find a solution.

It seems the activemq default JMX port is 1099, but the URL given in
the _CONTROL var is 1109 which matches the
config line.

By changing:
and removing the "--jmxurl
service:jmx:rmi:///jndi/rmi:// " from
ACTIVEMQ_SUNJMX_CONTROL I get things to work properly.

Is this a bug, or am I misunderstanding things?


View raw message