Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit 9d91bc7

Browse files
algestenmartinb3
authored andcommitted
HEAP_DUMP_PATH for vendored jruby. close #453
1 parent 9ddae22 commit 9d91bc7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/default/sv-logstash-run.erb

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ exec 2>&1
88
# Need to set LOGSTASH_HOME and HOME so sincedb will work
99
export LS_HEAP_SIZE=<%= @options[:max_heap] %>
1010
export LOGSTASH_HOME="<%= @options[:home] %>"
11+
# Must set HEAP_DUMP_PATH if vendored jruby is to work
12+
export HEAP_DUMP_PATH="-XX:HeapDumpPath=<%= @options[:home] %>/heapdump.hprof"
1113
export GC_OPTS="<%= @options[:gc_opts] %>"
1214
export JAVA_OPTS="-server -Xms<%= @options[:min_heap] %> -Xmx<%= @options[:max_heap] %> -Djava.io.tmpdir=$LOGSTASH_HOME/tmp/ <%= @options[:java_opts] %> <%= '-Djava.net.preferIPv4Stack=true' if @options[:ipv4_only] %>"
1315
LOGSTASH_OPTS="agent -f $LOGSTASH_HOME/etc/conf.d"

0 commit comments

Comments
 (0)