For the JMX: there is a newer setting in the activemq configuration file
that may override the command-line settings; here's a fairly stock example:

        <managementContext>

            <managementContext createConnector="true"/>

        </managementContext>

Check for these and any output during broker starting indicating the
management context failed to start -- if both try to start (via command
line and the config file), typically one fails.  The following can help
track down the state of JMX as well:


   - netstat -an | grep 1616
   - netstat -an | grep LISTEN
   - ps axu | grep java

The first two will show info on the ports open for listening on the
server.  The third shows the actual command-line used to start ActiveMQ.

Note that JMX can be tricky to start behind a firewall because it tends to
allocate a second port dynamically.  Adding a line like the following to
the ACTIVEMQ_SUNJMX_START may fix that issue:

-Dcom.sun.management.jmxremote.rmi.port=1615

Then make sure the same is open through the firewall.  Note that JMX uses a
different method of connection for local processes, so it's entirely
possible that the JVM is not properly configured to allow network
connections.


On Mon, Mar 28, 2016 at 2:23 AM, Hayate [via ActiveMQ] <
ml-node+s2283324n4709982...@n4.nabble.com> wrote:

> We use standalone broker, because we write our applications in PHP. And we
> don't use custom plugins.
>
> I try configure jmx for jconsole, on localhost all works well, but i can't
> connect to server over vpn.
> I use this manual: http://activemq.apache.org/jmx.html
>
> And here ACTIVEMQ_SUNJMX_START variable in startup script:
>
> ACTIVEMQ_SUNJMX_START=" -Dcom.sun.management.jmxremote.port=1616
> -Dcom.sun.management.jmxremote.ssl=false
> -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_BASE}/conf/jmx.password
>
> -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_BASE}/conf/jmx.access
>
> -Djava.rmi.server.hostname=vpn_id_address
> -Dcom.sun.management.jmxremote.local.only=false"
>
> What i do wrong?
> Thanks for advices.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://activemq.2283324.n4.nabble.com/ActiveMQ-hangs-and-i-don-t-understand-why-tp4709963p4709982.html
> To start a new topic under ActiveMQ - User, email
> ml-node+s2283324n234180...@n4.nabble.com
> To unsubscribe from ActiveMQ - User, click here
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2341805&code=YXJ0QGFtbGludi5jb218MjM0MTgwNXwyMDc3NjQwODU5>
> .
> NAML
> <http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-hangs-and-i-don-t-understand-why-tp4709963p4709987.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to