Changing Logstash Heap Size

Is it possible to change the max and min heap size for logstash v5.0.1? If possible, how?

1 Like

you can edit the config/jvm.options file, or use the LS_JAVA_OPTS environment variable.

1 Like

How do i use LS_JAVA_OPTS for multiple flags? do you have an example?

LS_JAVA_OPTS="-Xmx2g -Xms1g" bin/logstash -e ""

3 Likes

It works! Thank you very much!

1 Like

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