I've installed Logstash-5.2.2 from the .deb file on Ubuntu 16.04
/etc/default/logstash I have this:
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
/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?