# Logstash Heap Size Increasing

**URL:** <https://discuss.elastic.co/t/logstash-heap-size-increasing/46533>\
**Category:** Logstash\
**Created:** [April 6, 2016, 1:21pm UTC](https://discuss.elastic.co/t/logstash-heap-size-increasing/46533 "2016-04-06T13:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ganesh2303](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@Ganesh2303](https://discuss.elastic.co/u/Ganesh2303)\
**Post date:** [April 6, 2016, 1:21pm UTC](https://discuss.elastic.co/t/logstash-heap-size-increasing/46533/1 "2016-04-06T13:21:54Z")

</div>

HI,  
I'm using logstash version 2.2.1 and facing following issue while running the logstash. Anyone can help me to resolve it.

Error: Your application used more memory than the safety cap of 1G.  
Specify -J-Xmx####m to increase it (#### = cap size in MB).  
Specify -w for full OutOfMemoryError stack trace

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 7, 2016, 1:53am UTC](https://discuss.elastic.co/t/logstash-heap-size-increasing/46533/2 "2016-04-07T01:53:41Z")

</div>

What does your config look like.

---

<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:** [July 6, 2017, 5:03am UTC](https://discuss.elastic.co/t/logstash-heap-size-increasing/46533/3 "2017-07-06T05:03:24Z")

</div>


