commit | a8b443cccedccac19f192c63fdb0e8cb224f311a | [log] [tgz] |
---|---|---|
author | Fabian Meumertzheim <meumertzheim@code-intelligence.com> | Wed Sep 22 19:46:10 2021 +0200 |
committer | GitHub <noreply@github.com> | Wed Sep 22 19:46:10 2021 +0200 |
tree | bed41b68aa31eda6644894525577c32986bf50a5 | |
parent | 3e0e4f177fdb8ecff1c707fed83c16c094b181c9 [diff] |
Optimize GC for high throughput (#189) https://docs.oracle.com/en/java/javase/11/gctuning/available-collectors.html#GUID-414C9D95-297E-4EE3-B0D9-36F158A83393
diff --git a/driver/jvm_tooling.cpp b/driver/jvm_tooling.cpp index e90519f..98b5fd7 100644 --- a/driver/jvm_tooling.cpp +++ b/driver/jvm_tooling.cpp
@@ -234,6 +234,8 @@ // This may hurt performance, but also helps find flaky bugs. options.push_back( JavaVMOption{.optionString = (char *)"-XX:-OmitStackTraceInFastThrow"}); + // Optimize GC for high throughput rather than low latency. + options.push_back(JavaVMOption{.optionString = (char *)"-XX:+UseParallelGC"}); // add additional jvm options set through command line flags std::vector<std::string> jvm_args;