# Logstash 1.5.4 Java.exe memory leak

**URL:** <https://discuss.elastic.co/t/logstash-1-5-4-java-exe-memory-leak/34680>\
**Category:** Logstash\
**Created:** [November 16, 2015, 1:32pm UTC](https://discuss.elastic.co/t/logstash-1-5-4-java-exe-memory-leak/34680 "2015-11-16T13:32:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaminvp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaminvp/32/5868_2.png) [@jaminvp](https://discuss.elastic.co/u/jaminvp)\
**Post date:** [November 16, 2015, 1:32pm UTC](https://discuss.elastic.co/t/logstash-1-5-4-java-exe-memory-leak/34680/1 "2015-11-16T13:32:31Z")

</div>

Greetings,

Anyone else experiencing memory leaks with Logstash 1.5.4 when you install Logstash as a service with NSSM.exe?  
When running Logstash as a process (with logstash.bat), there's no steady increase in private bytes memory usage, java.exe stays stable at around 430-440 MB.

When installed as a service with NSSM.exe, the private bytes memory usage steadily increases with increments of 8KB-50KB around every second.

I think this made my Elasticsearch crash as my java.exe linked to Logstash was hogging 1.6GB of private bytes memory the last time it went down.

Update: At this moment I'm not even sure if NSSM.exe is the cause as it seems the java.exe linked to the process created by logstash.bat is showing a memory a small memory leak as well.

---

<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:** [November 17, 2015, 9:08am UTC](https://discuss.elastic.co/t/logstash-1-5-4-java-exe-memory-leak/34680/2 "2015-11-17T09:08:24Z")

</div>

Yes, this is a known issue with ruby.  
See [https://github.com/elastic/logstash/issues/3722](https://github.com/elastic/logstash/issues/3722)

---

<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:22am UTC](https://discuss.elastic.co/t/logstash-1-5-4-java-exe-memory-leak/34680/3 "2017-07-06T05:22:34Z")

</div>


