# Logstahs complains of short memory and stalls

**URL:** <https://discuss.elastic.co/t/logstahs-complains-of-short-memory-and-stalls/63966>\
**Category:** Logstash\
**Created:** [October 26, 2016, 7:25am UTC](https://discuss.elastic.co/t/logstahs-complains-of-short-memory-and-stalls/63966 "2016-10-26T07:25:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndarkness](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@ndarkness](https://discuss.elastic.co/u/ndarkness)\
**Post date:** [October 26, 2016, 7:25am UTC](https://discuss.elastic.co/t/logstahs-complains-of-short-memory-and-stalls/63966/1 "2016-10-26T07:25:53Z")

</div>

Hello,

Recently I have a crash in logstash, looking the logs I saw that it was due to memory, the log said the below

```
    root@VSPB:/var/log/logstash# cat logstash.err.1 

    Error: Your application used more memory than the safety cap of 600M.

    Specify -J-Xmx####m to increase it (#### = cap size in MB).

    Specify -w for full OutOfMemoryError stack trace

```

I have increased it to 2GB ( with `LS_HEAP_SIZE=2000m`) my server has 4GB. However whole logstash was stopped, which shouldn't happen, I would like that the service doesn't crash but it restarted instead, is that possible to do within logstash init script?

On the other hand, I would like to set up the option`LOGSPOUT=ignore` for logstahsh, where can I add this setting?

Thanks in advance,

Best regards

---

<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, 4:32am UTC](https://discuss.elastic.co/t/logstahs-complains-of-short-memory-and-stalls/63966/2 "2017-07-06T04:32:44Z")

</div>


