mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
- add java flags to help improve startup time for interactive/human logstash
sessions
This commit is contained in:
parent
2130fe11dd
commit
d0da38edc8
1 changed files with 8 additions and 2 deletions
10
bin/logstash
10
bin/logstash
|
@ -32,7 +32,14 @@ setup_ruby() {
|
|||
setup_vendored_jruby() {
|
||||
RUBYVER=1.9
|
||||
RUBY=jruby
|
||||
RUBYCMD="java -jar $basedir/vendor/jar/jruby-complete-*.jar"
|
||||
|
||||
# Attempt faster startup; this should be for interactive or "a human is
|
||||
# watching" execution.
|
||||
# TODO(sissel): Add 'server' operation with good flags for that situation.
|
||||
JAVA_OPTS="$JAVA_OPTS -client -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Djruby.compile.mode=OFF"
|
||||
JAVA_OPTS="$JAVA_OPTS -Xmx500m"
|
||||
|
||||
RUBYCMD="java $JAVA_OPTS -jar $basedir/vendor/jar/jruby-complete-*.jar"
|
||||
}
|
||||
|
||||
setup() {
|
||||
|
@ -41,7 +48,6 @@ setup() {
|
|||
else
|
||||
setup_vendored_jruby
|
||||
fi
|
||||
|
||||
export GEM_HOME="$basedir/vendor/bundle/${RUBY}/${RUBYVER}"
|
||||
export GEM_PATH=
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue