# How to configure metricbeat to monitor JVM memory

**URL:** https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106
**Category:** Beats
**Tags:** metricbeat
**Created:** [March 22, 2018, 5:27am UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106 "2018-03-22T05:27:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![muthu\_kumar1](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@muthu\_kumar1](https://discuss.elastic.co/u/muthu_kumar1)
#### Post date: [March 22, 2018, 5:27am UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106/1 "2018-03-22T05:27:57Z")

</div>

I Have to monitor my server JVM heap , garbage collections analysis in metricbeat. How to do it?

---

<div class="post-metadata">

### Author: ![Dvikas](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dvikas](https://discuss.elastic.co/u/Dvikas)
#### Post date: [March 22, 2018, 6:14am UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106/2 "2018-03-22T06:14:01Z")

</div>

Provide the path of the JVM heap and garbage collection where it is stored in metric beat.

---

<div class="post-metadata">

### Author: ![muthu\_kumar1](https://avatars.discourse-cdn.com/v4/letter/m/f17d59/32.png) [@muthu\_kumar1](https://discuss.elastic.co/u/muthu_kumar1)
#### Post date: [March 22, 2018, 7:04am UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106/3 "2018-03-22T07:04:51Z")

</div>

can you please help me get sample configuration for providing JVM in metricbeat

---

<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: [March 22, 2018, 12:08pm UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106/4 "2018-03-22T12:08:45Z")

</div>

If you run the [Jolokia](https://jolokia.org/) agent inside your JVM or the Jolokia proxy it will expose the JMX metrics over HTTP. Then you can use the joloka/jmx metricset to collect these 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: [April 19, 2018, 12:08pm UTC](https://discuss.elastic.co/t/how-to-configure-metricbeat-to-monitor-jvm-memory/125106/5 "2018-04-19T12:08:48Z")

</div>

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