Skip to content

Commit 1e4b8a1

Browse files
authored
KAFKA-6333: java.awt.headless should not be on commandline (#20044)
Reviewers: Mickael Maison <[email protected]>
1 parent 486b991 commit 1e4b8a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/kafka-run-class.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fi
282282
# JVM performance options
283283
# MaxInlineLevel=15 is the default since JDK 14 and can be removed once older JDKs are no longer supported
284284
if [ -z "$KAFKA_JVM_PERFORMANCE_OPTS" ]; then
285-
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true"
285+
KAFKA_JVM_PERFORMANCE_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15"
286286
fi
287287

288288
while [ $# -gt 0 ]; do

bin/windows/kafka-run-class.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ IF ["%KAFKA_HEAP_OPTS%"] EQU [""] (
177177

178178
rem JVM performance options
179179
IF ["%KAFKA_JVM_PERFORMANCE_OPTS%"] EQU [""] (
180-
set KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true
180+
set KAFKA_JVM_PERFORMANCE_OPTS=-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent
181181
)
182182

183183
IF not defined CLASSPATH (

0 commit comments

Comments
 (0)