This is an automated email from the ASF dual-hosted git repository. JackieTien97 pushed a commit to branch rc/2.0.11 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 9d3807a05fa2cfe81044bd1da40fe073431bcfb8 Author: Caideyipi <[email protected]> AuthorDate: Mon Jul 20 09:42:12 2026 +0800 Enable CRC32 intrinsic for DataNode (#18239) --- scripts/conf/datanode-env.sh | 3 +++ scripts/conf/windows/datanode-env.bat | 2 ++ 2 files changed, 5 insertions(+) diff --git a/scripts/conf/datanode-env.sh b/scripts/conf/datanode-env.sh index 85e880634c4..66a51a00fde 100755 --- a/scripts/conf/datanode-env.sh +++ b/scripts/conf/datanode-env.sh @@ -237,6 +237,9 @@ IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Djdk.nio.maxCachedBufferSize=${MAX_CACHED_BUFFE IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+CrashOnOutOfMemoryError" IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+UseAdaptiveSizePolicy" IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -Xss512k" +# Enable the CRC32 intrinsic on compiled paths to avoid the JNI critical fallback. +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+UnlockDiagnosticVMOptions" +IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+UseCRC32Intrinsics" # these two options print safepoints with pauses longer than 1000ms to the standard output. You can see these logs via redirection when starting in the background like "start-datanode.sh > log_datanode_safepoint.log" IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:SafepointTimeoutDelay=1000" IOTDB_JMX_OPTS="$IOTDB_JMX_OPTS -XX:+SafepointTimeout" diff --git a/scripts/conf/windows/datanode-env.bat b/scripts/conf/windows/datanode-env.bat index c9422670df5..c745e32eeec 100644 --- a/scripts/conf/windows/datanode-env.bat +++ b/scripts/conf/windows/datanode-env.bat @@ -126,6 +126,8 @@ set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UseAdaptiveSizePolicy set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -Xss512k @REM options below try to optimize safepoint stw time. set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UnlockDiagnosticVMOptions +@REM Enable the CRC32 intrinsic on compiled paths to avoid the JNI critical fallback. +set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:+UseCRC32Intrinsics set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:GuaranteedSafepointInterval=0 @REM these two options print safepoints with pauses longer than 1000ms to the standard output. You can see these logs via redirection when starting in the background like "start-datanode.sh > log_datanode_safepoint.txt" set IOTDB_HEAP_OPTS=%IOTDB_HEAP_OPTS% -XX:SafepointTimeoutDelay=1000
