diff --git a/bin/windows/kafka-server-start.bat b/bin/windows/kafka-server-start.bat index 6cf0533bd05b5..0b4aebeec61ac 100644 --- a/bin/windows/kafka-server-start.bat +++ b/bin/windows/kafka-server-start.bat @@ -25,8 +25,7 @@ IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] ( ) IF ["%KAFKA_HEAP_OPTS%"] EQU [""] ( rem detect OS architecture - wmic os get osarchitecture | find /i "32-bit" >nul 2>&1 - IF NOT ERRORLEVEL 1 ( + IF "%PROCESSOR_ARCHITECTURE%"=="x86" ( rem 32-bit OS set KAFKA_HEAP_OPTS=-Xmx512M -Xms512M ) ELSE (