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 24F4210D26 for ; Fri, 9 Aug 2013 19:55:39 +0000 (UTC) Received: (qmail 54137 invoked by uid 500); 9 Aug 2013 19:55:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53928 invoked by uid 500); 9 Aug 2013 19:55:38 -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 Received: (qmail 53920 invoked by uid 99); 9 Aug 2013 19:55:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 19:55:38 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of christian.posta@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Aug 2013 19:55:34 +0000 Received: by mail-la0-f48.google.com with SMTP id hi8so3250255lab.7 for ; Fri, 09 Aug 2013 12:55:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8KkExBD7JFcWHegCDWcg+9euFj3t3SlmnAtw3kTil1A=; b=pHVdGk095Gn1EE9/NdNNAU3ba/fxMg9xrn/bzslhMQBxrD483qrMZ/hsfXhNqidxOJ OZbx+lWl26CzSyrm/wUOoQ+FiYVpjtR2E77+XCYG9y/83hrkUqBbio/E5K4n/r9XyyES ZaHyuLLtqU/wa62QSUm6NetOkkM4QxfAYaAVoK0Z2unDTLLe43Bm2fzsujk026MIKU2J NIF+rAsctEinLzbnWL3JSdwheqo6vh4p9sVbrfAfy0Q60jMYhlpNAeLSOua41NF0e0Gu nF8y9f8jXIVbBiJjEtOeMsIoMEcrmkqQwy/icn+assUSPCps8HJpYw96CgOn54ecefJw 9yzA== MIME-Version: 1.0 X-Received: by 10.112.55.173 with SMTP id t13mr5162184lbp.39.1376078112559; Fri, 09 Aug 2013 12:55:12 -0700 (PDT) Received: by 10.114.2.239 with HTTP; Fri, 9 Aug 2013 12:55:12 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Aug 2013 12:55:12 -0700 Message-ID: Subject: Re: Activemq webconsole for multiple brocker From: Christian Posta To: "users@activemq.apache.org" Content-Type: multipart/alternative; boundary=001a1133e3301519fd04e389276e X-Virus-Checked: Checked by ClamAV on apache.org --001a1133e3301519fd04e389276e Content-Type: text/plain; charset=ISO-8859-1 Jolokia is started by default. Check out last section on this wiki: http://activemq.apache.org/rest.html You should be able to hit the rest management api (through jolokia) at http://localhost:8161/api/jolokia As for connecting to hawtio, there is a "Connect" tab that you should be able to use to connect to a "remove" JVM. I've seen this working at one point, but I just gave it a shot and it seems to not resolve correctly. Might have to get James a beer or two.... and maybe he can point us in the right direction :) On Fri, Aug 9, 2013 at 9:34 AM, Chirag Pujara wrote: > thanks. I read your blog. But I am running hawtio on tomcat. I want to > monitor remote instance of activemq using hawtio. > > So i though of stating jolokia with activemq assuming its not running. But > i think java doesnt support that or I dont know whats going on. > > here is what I was doing: > > /opt/gwx/apache-activemq-5.8.0/jdk1.7.0_25/bin/java > -javaagent:jolokia-jvm-1.1.3-agent.jar=port=7779,host=localhost -Xms1G > -Xmx1G -Djava.util.logging.config.file=logging.properties > -Dcom.sun.management.jmxremote.port=8100 > > -Dcom.sun.management.jmxremote.password.file=/opt/gwx/apache-activemq-5.8.0/activemq_8100/conf/jmx.password > > -Dcom.sun.management.jmxremote.access.file=/opt/gwx/apache-activemq-5.8.0/activemq_8100/conf/jmx.access > -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote > -Dcom.sun.management.jmxremote > -Djava.io.tmpdir=/opt/gwx/apache-activemq-5.8.0/activemq_8100/tmp > -Dactivemq.classpath=/opt/gwx/apache-activemq-5.8.0/activemq_8100/conf; > -Dactivemq.home=/opt/gwx/apache-activemq-5.8.0 > -Dactivemq.base=/opt/gwx/apache-activemq-5.8.0/activemq_8100 > -Dactivemq.conf=/opt/gwx/apache-activemq-5.8.0/activemq_8100/conf > -Dactivemq.data=/opt/gwx/apache-activemq-5.8.0/activemq_8100/data -jar > /opt/gwx/apache-activemq-5.8.0/bin/activemq.jar start > -Dactivemq.data=/opt/gwx/activemqdata -DopenwirePort=61616 -DamqpPort=5600 > -DrmiPort=8100 > > it starts jolokia but then doesnt recognize rest of the command. and print > java help options > > output: > > INFO: No access restrictor found, access to all MBean is allowed > Jolokia: Agent started with URL http://localhost:7779/jolokia/ > Usage: java [-options] class [args...] > (to execute a class) > or java [-options] -jar jarfile [args...] > (to execute a jar file) > where options include: > -d32 use a 32-bit data model if available > -d64 use a 64-bit data model if available > -server to select the "server" VM > The default VM is server, > because you are running on a server-class machine. > > > -cp > -classpath > A : separated list of directories, JAR archives, > and ZIP archives to search for class files. > -D= > set a system property > -verbose:[class|gc|jni] > enable verbose output > -version print product version and exit > -version: > require the specified version to run > -showversion print product version and continue > -jre-restrict-search | -no-jre-restrict-search > include/exclude user private JREs in the version search > -? -help print this help message > -X print help on non-standard options > -ea[:...|:] > -enableassertions[:...|:] > enable assertions with specified granularity > -da[:...|:] > -disableassertions[:...|:] > disable assertions with specified granularity > -esa | -enablesystemassertions > enable system assertions > -dsa | -disablesystemassertions > disable system assertions > -agentlib:[=] > load native agent library , e.g. -agentlib:hprof > see also, -agentlib:jdwp=help and -agentlib:hprof=help > -agentpath:[=] > load native agent library by full pathname > -javaagent:[=] > load Java programming language agent, see > java.lang.instrument > -splash: > show splash screen with specified image > See > http://www.oracle.com/technetwork/java/javase/documentation/index.htmlfor > more details. > -bash: -Dactivemq.home=/opt/gwx/apache-activemq-5.8.0: No such file or > directory > > and if I takeout > "-javaagent:jolokia-jvm-1.1.3-agent.jar=port=7779,host=localhost" from > above command it works fine. > > it seems i am doing something wrong but not sure. any help would be > helpful. > > thanks, > chirag > > > On Thu, Aug 8, 2013 at 3:30 PM, Christian Posta > wrote: > > > Might have to use a milestone or nightly build which has the remote JVM > > stuff in it. > > To run alongside activemq (if activemq is standalone for example), take a > > quick look here: > > > > http://www.christianposta.com/blog/?p=298 > > > > > > On Thu, Aug 8, 2013 at 12:20 PM, Chirag Pujara > >wrote: > > > > > thanks. > > > > > > I am trting to use hawtio. How do I connect remote JVM. > > > > > > It seems I can connect via jolokia (if I am wrong pls let me know > how?). > > > How do I make sure that it is running with activemq. I am using 5.8 > > version > > > of activemq. How do I configure port for that on activemq. or it will > be > > > same as openwire port. > > > > > > thanks, > > > chirag > > > > > > > > > > > > On Wed, Aug 7, 2013 at 4:37 PM, Christian Posta > > > wrote: > > > > > > > Check out hawtio. This will eventually be the webconsole in ActiveMQ > > > 5.9.0. > > > > > > > > > > > > On Wed, Aug 7, 2013 at 2:28 PM, Chirag Pujara < > chiragpujara@gmail.com > > > > >wrote: > > > > > > > > > Hi, > > > > > > > > > > Is it possible to monitor multiple brockers from single > webconsole. I > > > am > > > > > not running brockes in master/slave mode. > > > > > > > > > > If no is there any other soletion that I can use? > > > > > > > > > > thanks, > > > > > chirag > > > > > > > > > > > > > > > > > > > > > -- > > > > *Christian Posta* > > > > http://www.christianposta.com/blog > > > > twitter: @christianposta > > > > > > > > > > > > > > > -- > > *Christian Posta* > > http://www.christianposta.com/blog > > twitter: @christianposta > > > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta --001a1133e3301519fd04e389276e--