I've installed Logstash-5.2.2 from the .deb file on Ubuntu 16.04
In /etc/default/logstash
I have this:
LS_JAVA_OPTS="-Xms8g -Xmx8g"
And I can verify that the Logstash Java process indeed has the -Xmx8g -Xms8g
options.
But if I check the memory usage, it's more like 2 GB or so. Logstash does not seem to use the amount of heap it's configured with.
With Logstash 2.x if I put LS_HEAP_SIZE="8g"
in /etc/default/logstash
, it would actually use 8 GB.
What's going on here? What is the "officially correct" way to define the heap size for Logstash-5.x installed from .deb?