# Is there a way to monitor JVM without Jolokia

**URL:** https://discuss.elastic.co/t/is-there-a-way-to-monitor-jvm-without-jolokia/223959
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 17, 2020, 3:15pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-monitor-jvm-without-jolokia/223959 "2020-03-17T15:15:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dzoni](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dzoni](https://discuss.elastic.co/u/dzoni)
#### Post date: [March 17, 2020, 3:15pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-monitor-jvm-without-jolokia/223959/1 "2020-03-17T15:15:39Z")

</div>

Hello there,

can i Setup the metricbeats with any Parameters, in order to monitor my jmx metrics of a Java application without using jolokia?

i'm running my applications with Karaf.

thanks alot  
greetings

---

<div class="post-metadata">

### Author: ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)
#### Post date: [March 17, 2020, 8:57pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-monitor-jvm-without-jolokia/223959/2 "2020-03-17T20:57:28Z")

</div>

Hi @dzoni,

Metricbeat requires Jolokia to collect JMX metrics.

In principle only Java applications can collect JMX metrics. Metricbeat is a Go application, so it needs something that exposes the metrics in a protocol it can understand, this is why Jolokia is used, that exposes JMX through HTTP.

Jolokia can be deployed as an [OSGi agent](https://jolokia.org/agent/osgi.html), and it supports Karaf, so you could use it this way.

If you cannot deploy monitoring agents in your application server, but you have access to the RMI port of your Karaf server, you can use Jolokia in [proxy mode](https://jolokia.org/reference/html/proxy.html). Metricbeat supports it by using the [`target` setting](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-jolokia-jmx.html).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 14, 2020, 8:57pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-monitor-jvm-without-jolokia/223959/3 "2020-04-14T20:57:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
