Wowza Community

Jolokia (remote JMX with JSON over HTTP)


I just thought I would post something cool that I’ve come across. I’ve been looking for a way to access JMX functionality remotely without using Java. I was originally looking for something that would provide XML-RPC access, but then I found something better:

To implement on Amazon EC2, I added the following to my startup.xml:


Then, I changed the following in tuning/bin/

JAVA_OPTS="-Xmx{JAVAMAXHEAPSIZE} -server -javaagent:/opt/jolokia-0.90/agents/jolokia-jvm6.jar"

Then, I added port 8778 to my EC2 security group (see here on how to choose a different port:

After startup, I was able to go to and get the following response:


See for more details on what you can do, but you can do more than just read. You can write and execute as well. :smiley:

Anyway, hope this helps someone!

Security note: As is, this is wide open to anyone. A better option would be to load it on localhost (-javaagent:agent.jar=port=7777,host=localhost) and use Apache to redirect and handle authentication. I’ll update this post once I’ve figured out the easiest way to do that. :slight_smile:

  • david

Thanks for the tip!

YES! It’s great! Thank you!