Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CED3418973 for ; Mon, 28 Mar 2016 13:27:42 +0000 (UTC) Received: (qmail 2069 invoked by uid 500); 28 Mar 2016 13:27:37 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 2028 invoked by uid 500); 28 Mar 2016 13:27:37 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 66042 invoked by uid 99); 28 Mar 2016 13:04:24 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.966 X-Spam-Level: *** X-Spam-Status: No, score=3.966 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Date: Mon, 28 Mar 2016 05:34:12 -0700 (PDT) From: artnaseef To: users@activemq.apache.org Message-ID: In-Reply-To: <1459146225595-4709982.post@n4.nabble.com> References: <1458984442271-4709963.post@n4.nabble.com> <1459061548754-4709973.post@n4.nabble.com> <1459123335085-4709974.post@n4.nabble.com> <1459127247078-4709978.post@n4.nabble.com> <1459128477018-4709980.post@n4.nabble.com> <1459146225595-4709982.post@n4.nabble.com> Subject: Re: ActiveMQ hangs and i don't understand why MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21695_1013587243.1459168452429" ------=_Part_21695_1013587243.1459168452429 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 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+s2283324n4709982h90@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+s2283324n2341805h3@n4.nabble.com > To unsubscribe from ActiveMQ - User, click here > > . > 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. ------=_Part_21695_1013587243.1459168452429--