From d84465c15ac2d90158a210cd5736a33d4a924094 Mon Sep 17 00:00:00 2001 From: Yu Ning <78631860+Chillax-0v0@users.noreply.github.com> Date: Wed, 31 Jan 2024 10:27:52 +0800 Subject: [PATCH] fix(driver-kafka): Fix the ineffective `KAFKA_JVM_PERFORMANCE_OPTS` (#397) Signed-off-by: Ning Yu --- driver-kafka/deploy/hdd-deployment/templates/kafka.service | 2 +- driver-kafka/deploy/ssd-deployment/templates/kafka.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/driver-kafka/deploy/hdd-deployment/templates/kafka.service b/driver-kafka/deploy/hdd-deployment/templates/kafka.service index c5afac56..d35ac4b8 100644 --- a/driver-kafka/deploy/hdd-deployment/templates/kafka.service +++ b/driver-kafka/deploy/hdd-deployment/templates/kafka.service @@ -5,7 +5,7 @@ After=network.target [Service] ExecStart=/opt/kafka/bin/kafka-server-start.sh config/server.properties Environment='KAFKA_HEAP_OPTS=-Xms6g -Xmx6g -XX:MetaspaceSize=96m' -Environment='KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80 -Djava.awt.headless=true" +Environment='KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:G1HeapRegionSize=16M -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80 -Djava.awt.headless=true' WorkingDirectory=/opt/kafka RestartSec=1s Restart=on-failure diff --git a/driver-kafka/deploy/ssd-deployment/templates/kafka.service b/driver-kafka/deploy/ssd-deployment/templates/kafka.service index 39c04c1a..9d4a975e 100644 --- a/driver-kafka/deploy/ssd-deployment/templates/kafka.service +++ b/driver-kafka/deploy/ssd-deployment/templates/kafka.service @@ -5,7 +5,7 @@ After=network.target [Service] ExecStart=/opt/kafka/bin/kafka-server-start.sh config/server.properties Environment='KAFKA_HEAP_OPTS=-Xms16g -Xmx16g -XX:MetaspaceSize=96m' -Environment='KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ParallelRefProcEnabled -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=12 -XX:ConcGCThreads=12 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80 -Djava.awt.headless=true" +Environment='KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+ParallelRefProcEnabled -XX:+AggressiveOpts -XX:+DoEscapeAnalysis -XX:ParallelGCThreads=12 -XX:ConcGCThreads=12 -XX:+DisableExplicitGC -XX:-ResizePLAB -XX:MinMetaspaceFreeRatio=50 -XX:MaxMetaspaceFreeRatio=80 -Djava.awt.headless=true' WorkingDirectory=/opt/kafka RestartSec=1s Restart=on-failure