activemq-admin stop does not work when waiting for exclusive locks
------------------------------------------------------------------
Key: AMQ-2615
URL: https://issues.apache.org/activemq/browse/AMQ-2615
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.3.0
Environment: Centos 4, jre 1.6.0_17
Reporter: Rick Feldmann
I've searched both forums and have found nothing specific to the problem I'm
having. I'm using activemq 5.3.0 with 2 servers running. I've enabled all of
the jmx components in the activemq.xml file
<managementContext>
<managementContext
connectorPath="service:jmx:rmi://${backside.server.name}:1099/jmxrmi" />
</managementContext>
and in both the bin/activemq and bin/activemq-admin
SUNJMX="-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false"
We have 2 activemq servers up and running. The server that starts first will
stop properly when activemq-admin stop is issued. The server that was started
second and is attempting to acquire the exclusive lock will not stop when the
activemq-admin stop is issued.
before stop:
/usr/java/jre1.6.0_17/bin/java -Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Dcom.sun.management.snmp.port=1161
-Dcom.sun.management.snmp.interface=acsamq00.int.brivo.net
-Dcom.sun.management.snmp.acl.file=/home/jboss/brivo/snmp.acl
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dactivemq.classpath=/usr/local/messaging/messaging/conf;
-Dactivemq.home=/usr/local/messaging/messaging
-Dactivemq.base=/usr/local/messaging/messaging -jar
/usr/local/messaging/messaging/bin/run.jar start
actvemq-admin stop output:
Java Runtime: Sun Microsystems Inc. 1.6.0_17 /usr/java/jre1.6.0_17
Heap sizes: current=7680k free=7281k max=506816k
JVM args: -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Dactivemq.classpath=/usr/local/messaging/messaging/conf;
-Dactivemq.home=/usr/local/messaging/messaging
-Dactivemq.base=/usr/local/messaging/messaging
ACTIVEMQ_HOME: /usr/local/messaging/messaging
ACTIVEMQ_BASE: /usr/local/messaging/messaging
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
INFO: There are no brokers to stop.
after stop
/usr/java/jre1.6.0_17/bin/java -Xmx512M
-Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Dcom.sun.management.snmp.port=1161
-Dcom.sun.management.snmp.interface=acsamq00.int.brivo.net
-Dcom.sun.management.snmp.acl.file=/home/jboss/brivo/snmp.acl
-Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dactivemq.classpath=/usr/local/messaging/messaging/conf;
-Dactivemq.home=/usr/local/messaging/messaging
-Dactivemq.base=/usr/local/messaging/messaging -jar
/usr/local/messaging/messaging/bin/run.jar start
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.