# Logstash running out of Memory and crashing

**URL:** <https://discuss.elastic.co/t/logstash-running-out-of-memory-and-crashing/119114>\
**Category:** Logstash\
**Created:** [February 8, 2018, 8:01pm UTC](https://discuss.elastic.co/t/logstash-running-out-of-memory-and-crashing/119114 "2018-02-08T20:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhanu\_Karumudi](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@Bhanu\_Karumudi](https://discuss.elastic.co/u/Bhanu_Karumudi)\
**Post date:** [February 8, 2018, 8:01pm UTC](https://discuss.elastic.co/t/logstash-running-out-of-memory-and-crashing/119114/1 "2018-02-08T20:01:21Z")

</div>

Logstash running out of memory.  
it looked like a slow leak and memory reaching max.  
hprofs are generated and see following as suspects for leaks.

The class "org.jruby.util.io.ChannelDescriptor", loaded by "", occupies 229,287,728 (23.67%) bytes. The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Node[]" loaded by "".

and/or

1,660,226 instances of "sun.nio.ch.FileChannelImpl", loaded by "" occupy 278,917,968 (28.79%) bytes. These instances are referenced from one instance of "java.util.concurrent.ConcurrentHashMap$Node[]", loaded by ""

Logstash version 5.2.1  
max heap configured=1gb.  
system is not busy and it looked like a slow leak

Any help?

---

<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:** [March 8, 2018, 8:01pm UTC](https://discuss.elastic.co/t/logstash-running-out-of-memory-and-crashing/119114/2 "2018-03-08T20:01:42Z")

</div>

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