From a1c067dd9a78da8f87825df2f64bea1ce9d7bda0 Mon Sep 17 00:00:00 2001 From: Armin Date: Mon, 24 Jul 2017 15:14:37 +0200 Subject: [PATCH] MINOR: Enable JRuby AOT compilation and turn JIT threshold down to 0 Fixes #7783 --- config/jvm.options | 3 +++ qa/integration/specs/reload_config_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/jvm.options b/config/jvm.options index 00d679211..da0ea1fc9 100644 --- a/config/jvm.options +++ b/config/jvm.options @@ -53,6 +53,9 @@ # Turn on JRuby invokedynamic -Djruby.compile.invokedynamic=true +# Force Compilation +-Djruby.compile.mode=FORCE +-Djruby.jit.threshold=0 ## heap dumps diff --git a/qa/integration/specs/reload_config_spec.rb b/qa/integration/specs/reload_config_spec.rb index e45813a03..3c88a5ee7 100644 --- a/qa/integration/specs/reload_config_spec.rb +++ b/qa/integration/specs/reload_config_spec.rb @@ -18,7 +18,7 @@ describe "Test Logstash service when config reload is enabled" do let(:timeout_seconds) { 5 } let(:initial_port) { random_port } let(:reload_port) { random_port } - let(:retry_attempts) { 10 } + let(:retry_attempts) { 60 } let(:output_file1) { Stud::Temporary.file.path } let(:output_file2) { Stud::Temporary.file.path } let(:sample_data) { '74.125.176.147 - - [11/Sep/2014:21:50:37 +0000] "GET /?flav=rss20 HTTP/1.1" 200 29941 "-" "FeedBurner/1.0 (http://www.FeedBurner.com)"' } @@ -82,4 +82,4 @@ describe "Test Logstash service when config reload is enabled" do expect(re["clientip"]).to eq("74.125.176.147") expect(re["response"]).to eq(200) end -end \ No newline at end of file +end