I want to monitor ActiveMQ by jconsole . ActiveMQ 5.8.0 running under
redhat 6.3 , and jconsole is running under windows xp sp2.
    I did some googling , it  seems to me that I have to modify activemq.xml
and the startup script -- /bin/activemq. The example of startup script I
found is as follow :   
ACTIVEMQ_SUNJMX_START="-Dcom.sun.management.jmxremote.port=11099"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password"
ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START
-Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_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" 06. ACTIVEMQ_SUNJMX_CONTROL="--jmxurl
service:jmx:rmi:///jndi/rmi://192.168.28.53:11099/jmxrmi --jmxuser
controlRole --jmxpassword abcd1234"

However, I don't know what does the above example do, could anyone be kind
enough to explain the function of each line ? 
One more thing, I also found "SUNJMX=-Dcom.sun.management.jmxremote=true" in
http://activemq.apache.org/jmx.html , do I have to add this line in startup
script to enable remote JMX access ? 

As for activemq.xml ,I found an example as follow :
<broker useJmx="true">    
   <managementContext>       
      <managementContext connectorPort="2011" createConnector=true>             
 
</managementContext>
</broker> 

I am confused, because these two examples set the jmx port both in
activemq.xml and startup script, why is that ?  
    What is the right thing to do so that the jconsole could connect to
remote activemq under linux ?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Having-trouble-while-editing-startup-script-and-activemq-xml-in-order-to-monitor-AMQ-by-jconsole-tp4672648.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to