activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chirag Pujara <chiragpuj...@gmail.com>
Subject Re: Activemq clustring and JMX port chnage
Date Thu, 11 Jul 2013 22:21:10 GMT
Hello Paul,

I removed -Dcom.sun.management.jmxremote . but still same exception.

Here is output of stop command. may be I am missing something.

root@RHEL6u2-001-2:/opt/gwx/apache-activemq-5.8.0
17:13:57 # instance1/bin/instance1 stop
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq
/root/.activemqrc)

INFO: Invoke the following command to create a configuration file
/opt/gwx/apache-activemq-5.8.0/bin/activemq setup [ /etc/default/activemq |
/root/.activemqrc ]

INFO: Using java '/usr/bin/java'
INFO: Waiting at least 30 seconds for regular process termination of pid
'17698' :
Java Runtime: Sun Microsystems Inc. 1.6.0_22
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
  Heap sizes: current=1004928k  free=999683k  max=1004928k
    JVM args: -Xms1G -Xmx1G
-Djava.util.logging.config.file=logging.properties
-Dactivemq.classpath=/opt/gwx/apache-activemq-5.8.0/instance1/conf;
-Dactivemq.home=/opt/gwx/apache-activemq-5.8.0
-Dactivemq.base=/opt/gwx/apache-activemq-5.8.0/instance1
-Dactivemq.conf=/opt/gwx/apache-activemq-5.8.0/instance1/conf
-Dactivemq.data=/opt/gwx/apache-activemq-5.8.0/instance1/data
Extensions classpath:

[/opt/gwx/apache-activemq-5.8.0/instance1/lib,/opt/gwx/apache-activemq-5.8.0/lib,/opt/gwx/apache-activemq-5.8.0/instance1/lib/camel,/opt/gwx/apache-activemq-5.8.0/instance1/lib/optional,/opt/gwx/apache-activemq-5.8.0/instance1/lib/web,/opt/gwx/apache-activemq-5.8.0/instance1/lib/extra,/opt/gwx/apache-activemq-5.8.0/lib/camel,/opt/gwx/apache-activemq-5.8.0/lib/optional,/opt/gwx/apache-activemq-5.8.0/lib/web,/opt/gwx/apache-activemq-5.8.0/lib/extra]
ACTIVEMQ_HOME: /opt/gwx/apache-activemq-5.8.0
ACTIVEMQ_BASE: /opt/gwx/apache-activemq-5.8.0/instance1
ACTIVEMQ_CONF: /opt/gwx/apache-activemq-5.8.0/instance1/conf
ACTIVEMQ_DATA: /opt/gwx/apache-activemq-5.8.0/instance1/data
Connecting to pid: 17698
INFO: failed to resolve jmxUrl for pid:17698, using default JMX url
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: localhost; nested
exception is:
        java.net.ConnectException: Connection refused]

Thanks,
Chirag



On Thu, Jul 11, 2013 at 3:46 PM, Paul Gale <paul.n.gale@gmail.com> wrote:

> Try removing:   -Dcom.sun.management.jmxremote
>
> In the 'ActiveMQ in Action' book it states (emphasis mine):  "Don’t
> let the name of this property fool you, as it enables the JMX agent
> for local access ONLY."
>
> Remote access can only be granted once
> "com.sun.management.jmxremote.port" is assigned a value. With both
> defines present I'm not sure what the resultant behavior would be as
> they seem to be 'fighting' each other.
>
> Also, simplify things by experimenting with JMX authentication turned
> off. Set com.sun.management.jmxremote.authenticate=false and remove
> the other JMX related auth defines. Worth a try.
>
> Thanks,
> Paul
>
> On Thu, Jul 11, 2013 at 2:41 PM, chiragpujara <chiragpujara@gmail.com>
> wrote:
> > Thanks for reply. I had to set createConnector=true bcs I was getting
> > exception when I stop activemq.
> >
> > Exception:
> >
> > 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: localhost; nested
> > exception is:
> >         java.net.ConnectException: Connection refused]
> >         at
> >
> org.apache.activemq.console.command.ShutdownCommand.runTask(ShutdownCommand.java:116)
> >         at
> >
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> >         at
> >
> org.apache.activemq.console.command.AbstractJmxCommand.execute(AbstractJmxCommand.java:387)
> >         at
> >
> org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
> >         at
> >
> org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
> >         at
> >
> org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
> >         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)
> > ERROR: java.lang.Exception: 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]
> >
> > How can I stop ativemq without this exception. It waits for 30 seconds
> and
> > kills process.
> >
> > How do I fix it.
> >
> >
> >
> > --
> > View this message in context:
> http://activemq.2283324.n4.nabble.com/Activemq-clustring-and-JMX-port-chnage-tp4669144p4669150.html
> > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

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