From 4440d00ef8d708468f8bf3cbbab099641249b39a Mon Sep 17 00:00:00 2001 From: Dmitry Konstantinov Date: Wed, 20 May 2026 11:41:35 +0100 Subject: [PATCH] Enable async GC logging for JDK versions which support it to avoid potential hiccups caused by GC log file I/O blocking patch by Dmitry Konstantinov; reviewed by Stefan Miklosovic for CASSANDRA-21372 --- conf/jvm17-server.options | 6 ++++++ conf/jvm21-server.options | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/conf/jvm17-server.options b/conf/jvm17-server.options index 9a695aa351d7..7b399b761134 100644 --- a/conf/jvm17-server.options +++ b/conf/jvm17-server.options @@ -91,6 +91,12 @@ --add-opens java.base/java.nio=ALL-UNNAMED ### GC logging options -- uncomment to enable +-Xlog:async + +# In async mode JVM writes logs into a circular memory buffer; if the buffer fills up +# before it is drained, log records are silently dropped +# the default buffer size can be adjusted using the next option if needed +# -XX:AsyncLogBufferSize=2m # Java 11 (and newer) GC logging options: # See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax diff --git a/conf/jvm21-server.options b/conf/jvm21-server.options index 2f9e6da941ee..f86170350c93 100644 --- a/conf/jvm21-server.options +++ b/conf/jvm21-server.options @@ -111,6 +111,12 @@ ### GC logging options -- uncomment to enable +-Xlog:async + +# In async mode JVM writes logs into a circular memory buffer; if the buffer fills up +# before it is drained, log records are silently dropped +# the default buffer size can be adjusted using the next option if needed +# -XX:AsyncLogBufferSize=2m # Java 11 (and newer) GC logging options: # See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax