lusis / chef-logstash

Semi-official Logstash cookbook
Other
271 stars 353 forks source link

HEAP_DUMP_PATH required for vendored jruby logstash 2.3.x #453

Closed algesten closed 7 years ago

algesten commented 8 years ago

My runit script ultimately results in this:

DEBUG: exec /opt/logstash/server/vendor/jruby/bin/jruby --1.9 -J-server -J-Xms256M -J-Xmx1024M -J-Djava.io.tmpdir=/tmp/ -J-Djava.net.prerIPv4Stack=true -J-Xmx1g -J /opt/logstash/server/lib/bootstrap/environment.rb logstash/runner.rb agent -f /opt/logstash/server/etc/conf.d --pluginpath /opt/logstash/server/lib -l /opt/logstash/server/log/logstash.log -w 1
Usage: java [-options] class [args...]
...

Notice the dangling -J.

This is because /opt/logstash/server/bin/logstash.lib.sh has the following row:

    exec "${JRUBY_BIN}" $(jruby_opts) "-J$HEAP_DUMP_PATH" "$@"

if HEAP_DUMP_PATH isn't set we get the dangling -J

jmccann commented 8 years ago

This seems be related to #432 and fixed by #452 .