activemq-users mailing list archives

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

I want to run 2 activemq instance from same machine.

I used follwoing commands.

bin/activemq create instance1
bin/activemq setup ~/.activemqrc-instance-instance1


bin/activemq create instance2
bin/activemq setup ~/.activemqrc-instance-instance2

and I modified

instace2/bin/instance2 file with following lines:

ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=8200 "
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_BASE}/conf/jmx.password"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_BASE}/conf/jmx.access"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.ssl=false"
#ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote"
#
export ACTIVEMQ_SUNJMX_START=$ACTIVEMQ_SUNJMX_START


and

instace1/bin/instance1 withI also tried

ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=8100 "
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_BASE}/conf/jmx.password"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_BASE}/conf/jmx.access"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.ssl=false"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote"

export ACTIVEMQ_SUNJMX_START=$ACTIVEMQ_SUNJMX_START

I also tried

export
ACTIVEMQ_SUNJMX_CONTROL="-Dactivemq.jmx.url=service:jmx:rmi:///jndi/rmi://
127.0.0.1:8100/jmxrmi"

in instance1 file.

but debug statement says "INFO | JMX consoles can connect to
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi"

what am I missing.

thanks,
Chirag

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