activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Chirita <Andi.Chir...@ignitionone.com>
Subject I changed activemq default jmx port but now it's failing to stop
Date Tue, 26 Mar 2013 15:40:40 GMT
Hi,

I changed ActiveMQ default jmx port from 1099 to 2099 in my start script.

==> /var/log/activemq/start.log <==
Java Runtime: Sun Microsystems Inc. 1.6.0_18 /usr/lib/jvm/java-6-openjdk/jre
  Heap sizes: current=502464k  free=497220k  max=502464k
    JVM args: -Dcom.sun.management.jmxremote.port=2099 ..*

sudo /etc/init.d/activemq stop
ActiveMQ is still running - sending KILL signal to PID 2658! ... (warning).
Unable to kill ActiveMQ! ... failed!

==> /var/log/activemq/stop.log <==
Connecting to JMX URL: service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
ERROR: java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException:
Failed to retrieve RMIServer
 stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException:
Connection refused to host:
 localhost; nested exception is:
        java.net.ConnectException: Connection refused]
java.lang.RuntimeException: Failed to execute stop task. Reason: java.io.IOException: Failed
to retrieve RMIServer stub:
javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection
refused to host: localh
ost; nested exception is:
        java.net.ConnectException: Connection refused]
        at org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:107)
        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:385)
        at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148)
        at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
        at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
        at org.apache.activemq.console.Main.main(Main.java:115)


I'm running apache-activemq-5.7.0.fuse-71-047.

Any ideas why it failed to stop? It works if I connect to jmx (port 2099) with jconsole and
stop the broker from there.

Thanks,

Andi


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message