# What is heap\_max\_in\_bytes in logstash monitor api?

**URL:** <https://discuss.elastic.co/t/what-is-heap-max-in-bytes-in-logstash-monitor-api/65927>\
**Category:** Logstash\
**Created:** [November 14, 2016, 3:00am UTC](https://discuss.elastic.co/t/what-is-heap-max-in-bytes-in-logstash-monitor-api/65927 "2016-11-14T03:00:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YuWatanabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yuwatanabe/32/13259_2.png) [@YuWatanabe](https://discuss.elastic.co/u/YuWatanabe)\
**Post date:** [November 14, 2016, 3:00am UTC](https://discuss.elastic.co/t/what-is-heap-max-in-bytes-in-logstash-monitor-api/65927/1 "2016-11-14T03:00:22Z")

</div>

I am testing the performance of logstash and realized that **heap\_max\_in\_bytes** are above the -Xmx parameter of jvm.

Below is my snippet of jvm.options

```
## JVM configuration

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms256m
-Xmx1g

```

Below is my node stats in monitor api.

`{"host":"logstash-1","version":"5.0.0","http_address":"127.0.0.1:9600","jvm":{"threads":{"count":38,"peak_count":40},"mem":{"heap_used_in_bytes":924685144,"heap_used_percent":43,"heap_committed_in_bytes":1264427008,"heap_max_in_bytes":2112618496,"non_heap_used_in_bytes":206980800,"non_heap_committed_in_bytes":219774976`

Due to my lack of my knowledge in jvm I appreciate if someone can clarify why this heap\_max\_in\_bytes are above -Xmx and which key corresponds to -Xmx.

---

<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:** [December 12, 2016, 3:00am UTC](https://discuss.elastic.co/t/what-is-heap-max-in-bytes-in-logstash-monitor-api/65927/2 "2016-12-12T03:00:24Z")

</div>

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