Great blog post Christian, keep up the great work! Would be good to show the new move/delete/replay-of-DLQ messages too thats available in 5.9.x :)
I've just cut 1.2-M5 of hawtio which fixes those issues (thanks for figuring them out - especially the commons-codec issue!). I also fixed this one too: https://github.com/hawtio/hawtio/issues/472 to report more gracefully if we try to connect to a remote JVM and can't due to an issue such as a wrong path, host name or port etc. Finally 1.2-M5 has a new executable jar; so its super easy to get started running hawtio; no need to muck about with tomcat/jetty/wars, you can just download the executable jar and you're on your way to hawtness. http://hawt.io/getstarted/index.html So hopefully we should be close to getting rid of these remote-connection gremlins now. Thanks for all your help! On 14 August 2013 00:32, Christian Posta <christian.po...@gmail.com> wrote: > I've added a step-by-step instruction here: > > http://www.christianposta.com/blog/?p=315 > > Note, there are a couple of bugs to take care of in HawtIO to get this > polished: > > https://github.com/hawtio/hawtio/issues/470 > > and > > https://github.com/hawtio/hawtio/issues/471 > > > On Tue, Aug 13, 2013 at 2:55 AM, James Strachan > <james.strac...@gmail.com>wrote: > >> I added a FAQ entry to hawtio on this topic in case it helps: >> >> https://github.com/hawtio/hawtio/blob/master/FAQ.md#how-do-i-connect-to-my-remote-jvm >> >> On 13 August 2013 10:35, James Strachan <james.strac...@gmail.com> wrote: >> > Sorry you're having trouble connecting hawtio to your broker JVMs! >> > >> > All thats required for hawtio to connect to any remove JVM is that a >> > jolokia agent can be added to it. This can be done in various ways >> > though. >> > >> > By default if a JVM (e.g. an ActiveMQ broker) has no jolokia or jetty >> > at all, you can use the Local tab of the Connect plugin (in 1.2.x of >> > hawtio-default.war). The Local tab lists all local Java processes on >> > the same machine (like JConsole does). For JVMs not running a jolokia >> > agent already, there's a start button (on the right) which will >> > dynamically add the jolokia JVM agent into the JVM. You can then click >> > on the Agent URL link to connect into it. >> > >> > I just tried this on a local ActiveMQ 5.8.0 distro with Jetty disabled >> > & it works a treat. >> > >> > Note that the Local plugin only works when the JVM running hawtio has >> > the hawtio-local-jvm-mbean plugin installed (which depends on the JVM >> > finding the com.sun.tools.attach.VirtualMachine API that jconsole uses >> > and is included in the hawtio-default.war). This also only works when >> > the process is on the same machine as the JVM running hawtio. So a >> > safer option is just to make sure there's a jolokia agent running in >> > each JVM you want to manage with hawtio. >> > >> > There are a few different agents you can use: >> > http://jolokia.org/agent.html >> > >> > e.g. a WAR agent, an OSGi agent or a JVM agent. >> > >> > If there's jetty, then try the WAR agent; otherwise try the JVM agent: >> > http://jolokia.org/agent/jvm.html >> > >> > All this isn't an issue of ActiveMQ 5.9.x or later; as jolokia and >> > hawtio are installed by default; but hopefully if you can get jolokia >> > working (e.g. test it by accessing http://host:port/jolokia to see if >> > you can view the jolokia version info). >> > >> > If you can get jolokia working in your JVM; then the Remote tab on the >> > Connect plugin in hawtio should be able to connect to your JVM,. >> > >> > Hope that helps; do let us know how you get on getting Jolokia running >> > in your broker JVM. >> > >> > On 9 August 2013 22:51, Chirag Pujara <chiragpuj...@gmail.com> wrote: >> >> I think i figured out what was wrong with my inital setup. I had >> commented >> >> out import for jetty.xml in activemq xml bcs I didnt wanted to start >> >> webconsole. But I guess I have to keep it if I want jolokia feature. >> >> >> >> In hawtio I used following config in Connect tab: >> >> >> >> hostname: localhost >> >> port: 8161 >> >> path: /api/jolokia >> >> username:admin >> >> password: admin >> >> use proxy: yes >> >> >> >> but when I say connect remote server I dont see any activemq stuff >> there. >> >> >> >> any suggestions? >> >> >> >> thanks, >> >> chirag >> >> >> >> >> >> >> >> On Fri, Aug 9, 2013 at 2:55 PM, Christian Posta >> >> <christian.po...@gmail.com>wrote: >> >> >> >>> 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 <chiragpuj...@gmail.com >> >>> >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 <class search path of directories and zip/jar files> >> >>> > -classpath <class search path of directories and zip/jar files> >> >>> > A : separated list of directories, JAR archives, >> >>> > and ZIP archives to search for class files. >> >>> > -D<name>=<value> >> >>> > set a system property >> >>> > -verbose:[class|gc|jni] >> >>> > enable verbose output >> >>> > -version print product version and exit >> >>> > -version:<value> >> >>> > 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[:<packagename>...|:<classname>] >> >>> > -enableassertions[:<packagename>...|:<classname>] >> >>> > enable assertions with specified granularity >> >>> > -da[:<packagename>...|:<classname>] >> >>> > -disableassertions[:<packagename>...|:<classname>] >> >>> > disable assertions with specified granularity >> >>> > -esa | -enablesystemassertions >> >>> > enable system assertions >> >>> > -dsa | -disablesystemassertions >> >>> > disable system assertions >> >>> > -agentlib:<libname>[=<options>] >> >>> > load native agent library <libname>, e.g. >> >>> -agentlib:hprof >> >>> > see also, -agentlib:jdwp=help and >> -agentlib:hprof=help >> >>> > -agentpath:<pathname>[=<options>] >> >>> > load native agent library by full pathname >> >>> > -javaagent:<jarpath>[=<options>] >> >>> > load Java programming language agent, see >> >>> > java.lang.instrument >> >>> > -splash:<imagepath> >> >>> > 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 >> >>> > <christian.po...@gmail.com>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 < >> chiragpuj...@gmail.com >> >>> > > >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 >> >>> > > > <christian.po...@gmail.com>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 < >> >>> > chiragpuj...@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 >> >>> >> > >> > >> > >> > -- >> > James >> > ------- >> > Red Hat >> > >> > Email: jstra...@redhat.com >> > Web: http://fusesource.com >> > Twitter: jstrachan, fusenews >> > Blog: http://macstrac.blogspot.com/ >> > >> > Open Source Integration >> >> >> >> -- >> James >> ------- >> Red Hat >> >> Email: jstra...@redhat.com >> Web: http://fusesource.com >> Twitter: jstrachan, fusenews >> Blog: http://macstrac.blogspot.com/ >> >> Open Source Integration >> > > > > -- > *Christian Posta* > http://www.christianposta.com/blog > twitter: @christianposta -- James ------- Red Hat Email: jstra...@redhat.com Web: http://fusesource.com Twitter: jstrachan, fusenews Blog: http://macstrac.blogspot.com/ Open Source Integration