This is an automated email from the ASF dual-hosted git repository.

nicoloboschi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new fcb714999c Fix JVM exited when running localbookie with jdk17 (#3334)
fcb714999c is described below

commit fcb714999c516b71ba680693b3d95f284023e59d
Author: weiping-code <[email protected]>
AuthorDate: Mon Jul 18 16:22:25 2022 +0800

    Fix JVM exited when running localbookie with jdk17 (#3334)
    
    Co-authored-by: ZhangJian He <[email protected]>
---
 bin/common.sh                                    | 1 -
 deploy/kubernetes/gke/bookkeeper.statefulset.yml | 2 +-
 deploy/kubernetes/gke/bookkeeper.yaml            | 2 +-
 stream/conf/streamstorage_cli_env.sh             | 2 +-
 stream/conf/streamstorage_env.sh                 | 2 +-
 5 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/common.sh b/bin/common.sh
index 5393b12a5e..e872779531 100755
--- a/bin/common.sh
+++ b/bin/common.sh
@@ -96,7 +96,6 @@ else
     -XX:MaxGCPauseMillis=10 \
     -XX:+ParallelRefProcEnabled \
     -XX:+UnlockExperimentalVMOptions \
-    -XX:+AggressiveOpts \
     -XX:+DoEscapeAnalysis \
     -XX:ParallelGCThreads=32 \
     -XX:ConcGCThreads=32 \
diff --git a/deploy/kubernetes/gke/bookkeeper.statefulset.yml 
b/deploy/kubernetes/gke/bookkeeper.statefulset.yml
index 03ea637df4..49548f09d0 100644
--- a/deploy/kubernetes/gke/bookkeeper.statefulset.yml
+++ b/deploy/kubernetes/gke/bookkeeper.statefulset.yml
@@ -33,7 +33,7 @@ kind: ConfigMap
 metadata:
     name: bookie-config
 data:
-    BK_BOOKIE_EXTRA_OPTS: "\"-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g 
-XX:+UseG1GC  -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis 
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 
-XX:+DisableExplicitGC -XX:-ResizePLAB\""
+    BK_BOOKIE_EXTRA_OPTS: "\"-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g 
-XX:+UseG1GC  -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 
-XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC 
-XX:-ResizePLAB\""
     BK_bookiePort: "3181"
     BK_journalDirectory: "/bookkeeper/data/journal"
     BK_ledgerDirectories: "/bookkeeper/data/ledgers"
diff --git a/deploy/kubernetes/gke/bookkeeper.yaml 
b/deploy/kubernetes/gke/bookkeeper.yaml
index 7ad58af041..78b28c892a 100644
--- a/deploy/kubernetes/gke/bookkeeper.yaml
+++ b/deploy/kubernetes/gke/bookkeeper.yaml
@@ -24,7 +24,7 @@ kind: ConfigMap
 metadata:
     name: bookie-config
 data:
-    BK_BOOKIE_EXTRA_OPTS: "\"-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g 
-XX:+UseG1GC  -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis 
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 
-XX:+DisableExplicitGC -XX:-ResizePLAB\""
+    BK_BOOKIE_EXTRA_OPTS: "\"-Xms1g -Xmx1g -XX:MaxDirectMemorySize=1g 
-XX:+UseG1GC  -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 
-XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC 
-XX:-ResizePLAB\""
     BK_bookiePort: "3181"
     BK_journalDirectory: "/bookkeeper/data/journal"
     BK_ledgerDirectories: "/bookkeeper/data/ledgers"
diff --git a/stream/conf/streamstorage_cli_env.sh 
b/stream/conf/streamstorage_cli_env.sh
index 504a25b0da..80f5bba708 100644
--- a/stream/conf/streamstorage_cli_env.sh
+++ b/stream/conf/streamstorage_cli_env.sh
@@ -45,7 +45,7 @@
 SS_MEM=" -Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g"
 
 # Garbage collection options
-SS_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis 
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 
-XX:+DisableExplicitGC -XX:-ResizePLAB"
+SS_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 
-XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC 
-XX:-ResizePLAB"
 
 # Extra options to be passed to the jvm
 SS_EXTRA_OPTS="${SS_EXTRA_OPTS} ${SS_MEM} ${SS_GC} 
-Dio.netty.leakDetectionLevel=disabled"
diff --git a/stream/conf/streamstorage_env.sh b/stream/conf/streamstorage_env.sh
index 504a25b0da..80f5bba708 100644
--- a/stream/conf/streamstorage_env.sh
+++ b/stream/conf/streamstorage_env.sh
@@ -45,7 +45,7 @@
 SS_MEM=" -Xms2g -Xmx2g -XX:MaxDirectMemorySize=4g"
 
 # Garbage collection options
-SS_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis 
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 
-XX:+DisableExplicitGC -XX:-ResizePLAB"
+SS_GC=" -XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=32 
-XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 -XX:+DisableExplicitGC 
-XX:-ResizePLAB"
 
 # Extra options to be passed to the jvm
 SS_EXTRA_OPTS="${SS_EXTRA_OPTS} ${SS_MEM} ${SS_GC} 
-Dio.netty.leakDetectionLevel=disabled"

Reply via email to