Closed algesten closed 7 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.
-J
This is because /opt/logstash/server/bin/logstash.lib.sh has the following row:
/opt/logstash/server/bin/logstash.lib.sh
exec "${JRUBY_BIN}" $(jruby_opts) "-J$HEAP_DUMP_PATH" "$@"
if HEAP_DUMP_PATH isn't set we get the dangling -J
This seems be related to #432 and fixed by #452 .
My runit script ultimately results in this:
Notice the dangling
-J
.This is because
/opt/logstash/server/bin/logstash.lib.sh
has the following row:if HEAP_DUMP_PATH isn't set we get the dangling
-J