Jolokia is an alternative to JSR-160 connectors for remote JMX access. It provides REST-like access to JMX with JSON over HTTP.
Questions tagged [jolokia]
122 questions
1
vote
0 answers
Spring Boot Jolokia Post Method Not Allowed
I have a Spring Boot fat war application that I want to monitor using Hawtio.
I added the following dependency to the pom file to enable the Jolokia agent.
org.jolokia
…

Jay
- 11
- 1
1
vote
1 answer
Jolokia prevents Tomcat Shutdown
I integrated jolokia with my tomcat (tomcat 7.0.53, jdk 1.8.0_45)
I configured the javaagent in tomcat-directory/bin/setenv.sh:
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/jolokia-jvm-1.2.0-agent.jar=config=/path/to/config.properties"
Now, I…

Markus Roth
- 13
- 3
1
vote
1 answer
Spring Boot, Jolokia Remote Access returns No 'Access-Control-Allow-Origin' header is present
I setup jolokia with jmx on my spring boot application, so I can get jmx information over HTTP.
However I can't get the data by javascript ajax with the error "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin…

Steve Park
- 1,979
- 27
- 33
1
vote
1 answer
Extract data from JSON in vanilla Java/Camel/Spring
I am trying to write a Camel route to get JMX data from an ActiveMQ server through the Jolokia REST API. I was able to successfully get the JSON object from the ActiveMQ server, but I am running into an issue where I cannot figure out how to parse…

Jon
- 2,502
- 4
- 21
- 23
1
vote
1 answer
hawtio - predefined list of remote agents
I'm working on an application which is comprised of many web containers with WAR-s installed on these containers.
Currently I have a farm of ~ 10 servers like this.
I'm about to start the integration of jolokia/hawtio to track the JMX mbeans exposed…

Mark Bramnik
- 39,963
- 4
- 57
- 97
1
vote
1 answer
Use Jolokia to monitor JMX endpoint of webapp on same Tomcat server
Jolokia is uncharted territory for me, and after having read the documentation, I'm still not sure if it'll work with the scenario I have in mind.
Setup:
Tomcat application server (version ranges from 6.x to 7.x), usually on a Windows platform,…

DocZerø
- 8,037
- 11
- 38
- 66
1
vote
2 answers
Getting LifeCiycleException using Docker Maven Plugin on Ubuntu 14
I am using the jolokia Docker Maven Plugin for building a Java Application on Ubuntu 14 on a VM.
Everytime I try maven clean package I get
[ERROR] Failed to execute goal
org.jolokia:docker-maven-plugin:0.11.0:build (build) on project
…

Shachty
- 521
- 2
- 7
- 16
1
vote
0 answers
Cassandra compaction by API
I'm running Cassandra 2.1.2, and I want to do a compaction programmatically, e.g. by sending an HTTP request somewhere, not by running nodetool compact on the command line. Is this possible? I have Jolokia, if that's any help. I can also use CQL,…

Inquisitive Idiot
- 412
- 4
- 19
1
vote
2 answers
Purge AMQ queue using jolokia api
Trying to find a way to purge 2 queues in AMQ using the jolokia api and curl.
Found this in the jolokia list:
"brokerName=localhost,destinationName=FOO.CommandQueue,destinationType=Queue,type=Broker":
{ ...
"purge": {
…

jne
- 457
- 2
- 9
- 22
1
vote
0 answers
Processing time for a request using Jolokia
I'm developping a Web Service, using Glassfish 4. When someone makes a call, I know how many time each method took. I'm saving this information on log(Log4J).
Now I want to monitorize the application using JMX (Currently I'm using Jolokia).
From…

Goldbones
- 1,407
- 3
- 21
- 55
1
vote
0 answers
Jolokia - Get many attributes in a single request
I'd like to perform a single call to Jolokia and get all the values of the attributes for the JVM Pools.
This works fine for a single attribute:
http://myserver/jolokia/read/java.lang:type=MemoryPool,name=Code%20Cache/Name/
But if i'd like to get…

pmartin8
- 1,545
- 1
- 20
- 36
0
votes
0 answers
how to track which users are making what JMX calls via logs for hawtio in tomcat
How can I track what user is making what JMX calls via the hawtio web UI? I am running hawtio on tomcat. I am stuck at seeing any meaningful event logs at all.
I am able to log in with user scott/tiger but logs stop generating after login. The last…

amanda
- 1
0
votes
0 answers
How to collect jolokia data via telegraf but just if the jolokia connection is active?
When my application is up, telegraf works fine and collects data related to jolokia since my application opens the port 11722 that telegraf uses to get the metrics. But then, when my application is down, telegraf starts to get errors since it can't…

Arthur Accioly
- 801
- 9
- 26
0
votes
0 answers
Remote apache karaf bundle management via jolokia?
I need to remotly manage the bundles that run on my karaf instances, ideally via HTTP calls or python scripts.
I set up my karaf instance and can access to it at http://mykarafserver:8040/jolokia.
I found just one example of usage in the jolokia…

Loko
- 120
- 9
0
votes
0 answers
Hawtio throws "Cannot connect to Jolokia to access this Java process" exception
Hawtio throws "Cannot connect to Jolokia to access this Java process" exception for user , while trying to access container perspective from the Hawtio UI
This is what I have done so far
on hawtio server
Have a tomcat server running
Install…

user2570135
- 2,669
- 6
- 50
- 80