# Java heap memory through elk- possible?

**URL:** https://discuss.elastic.co/t/java-heap-memory-through-elk-possible/132528
**Category:** Beats
**Tags:** metricbeat
**Created:** [May 18, 2018, 7:00pm UTC](https://discuss.elastic.co/t/java-heap-memory-through-elk-possible/132528 "2018-05-18T19:00:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nithin\_Nk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithin_nk/32/31137_2.png) [@Nithin\_Nk](https://discuss.elastic.co/u/Nithin_Nk)
#### Post date: [May 18, 2018, 7:00pm UTC](https://discuss.elastic.co/t/java-heap-memory-through-elk-possible/132528/1 "2018-05-18T19:00:43Z")

</div>

Is there a way to monitor java heap memory????

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [May 18, 2018, 8:29pm UTC](https://discuss.elastic.co/t/java-heap-memory-through-elk-possible/132528/2 "2018-05-18T20:29:20Z")

</div>

Metricbeat can get JMX metrics with the help of [Jolokia](https://jolokia.org/). See the [jolokia jmx](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-jolokia-jmx.html) metricset.

Basically you need to setup the Jolokia agent and then Metricbeat will connect to it to collect the JMX metrics.

---

<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: [June 15, 2018, 8:29pm UTC](https://discuss.elastic.co/t/java-heap-memory-through-elk-possible/132528/3 "2018-06-15T20:29:23Z")

</div>

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