Logstash - xmx parameter from jvm.properties not read


#1

Hi,

seems if I made some dumb error, but I do not find it.

I extracted the logstash tar to /usr/local/elastic/logstash/logstash-6.2.1/
I changed /usr/local/elastic/logstash/logstash-6.2.1/config/jvm.options to following values:

-Xms3g
-Xmx3g

Then I start logstash with following command:

/usr/local/elastic/logstash/logstash-$LS_VERSION/bin/logstash -f /usr/local/elastic/logstash/conf --path.settings /usr/local/elastic/logstash/logstash-$LS_VERSION/conf $options

$LS_VERSION and $options are arguments of my start script which are configured before.

after starting ps -ef still shows:

logstash  16630  16628 50 14:26 pts/0    00:02:04 /bin/java -Xms256m -Xmx1g -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFra...

Also monitoring api shows:

"mem":{
         "heap_used_percent":42,
         "heap_committed_in_bytes":721715200,
         "heap_max_in_bytes":1038876672,
         "heap_used_in_bytes":437680640,
         "non_heap_used_in_bytes":136939088,
         "non_heap_committed_in_bytes":153436160,
...

permissions should also fit:

[root@elasticsearch-test logstash-6.2.1]# ls -l config/
total 28
-rw-r--r--. 1 logstash logstash 1846 Feb 28 14:05 jvm.options
-rw-r--r--. 1 logstash logstash 4466 Feb  7 21:13 log4j2.properties
-rw-r--r--. 1 logstash logstash 6346 Feb  7 21:13 logstash.yml
-rw-r--r--. 1 logstash logstash 3244 Feb  7 21:13 pipelines.yml
-rw-r--r--. 1 logstash logstash 1702 Feb  7 21:13 startup.options

Any Idea is welcome.
Thanks a lot, Andreas


#2

found the issue here:

typo in path.settings: /usr/local/elastic/logstash/logstash-$LS_VERSION/config is correct

now it works :wink:


(system) #3

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