Logstash Java heap space

My logstash 6.3 running in docker is failing, see below:

logstash_1 | java.lang.OutOfMemoryError: Java heap space
logstash_1 | Dumping heap to java_pid1.hprof ...
logstash_1 | Unable to create java_pid1.hprof: File exists
logstash_1 | [2018-07-17T19:43:41,313][ERROR][org.logstash.Logstash ] java.lang.OutOfMemoryError: Java heap space

I have LS_JAVA_OPTS: "-Xmx256m -Xms256m" and ES_JAVA_OPTS: "-Xmx256m -Xms256m", how much mem should I assign (I have 32g avail) ?

256m is really small! The smallest I use now is -Xmx750m (because 500m stopped working when I upgraded to 6.3). If you want to tune it then read this. If memory is free and you just want to get it up and running I would try -Xms1000m -Xmx2000m.

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