Yep, that's where I got. On Friday, August 9, 2013, Chirag Pujara 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> > > > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta