aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
diff options
context:
space:
mode:
authorGravatar Janak Ramakrishnan <janakr@google.com>2016-03-23 17:26:12 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-03-24 10:31:43 +0000
commit8cc772ef98604678d99b6a685e412a11a6508ba5 (patch)
tree59e3b96e6813a04ca9d8692529850e7c90f171d8 /src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
parentb92c097ffac2e2e50632fc0a6e4f6909386aee45 (diff)
Add startup option --experimental_oom_more_eagerly_threshold, with default value 90. When --experimental_oom_more_eagerly is enabled, if after two full GCs the old gen is still >=--experimental_oom_more_eagerly_threshold% full, exit the JVM.
-- MOS_MIGRATED_REVID=117943361
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
index bd07e166e1..47e3cacaa7 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java
@@ -177,6 +177,16 @@ public class BlazeServerStartupOptions extends OptionsBase {
)
public boolean oomMoreEagerly;
+ @Option(
+ name = "experimental_oom_more_eagerly_threshold",
+ defaultValue = "90", // NOTE: purely decorative! See class docstring.
+ category = "server startup",
+ help =
+ "If --experimental_oom_more_eagerly is set, Blaze will OOM if, after two full GC's, more "
+ + "than this percentage of the (old gen) heap is still occupied."
+ )
+ public int oomMoreEagerlyThreshold;
+
@Option(name = "block_for_lock",
defaultValue = "true", // NOTE: purely decorative! See class docstring.
category = "server startup",