kafka本地安装报错
打开 bin/kafka-run-class.sh。#删除-XX:+UseG1GC。#重启kafka集群。
·
Error: VM option ‘UseG1GC’ is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
#打开 bin/kafka-run-class.sh
KAFKA_JVM_PERFORMANCE_OPTS=“-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true”
#删除-XX:+UseG1GC
KAFKA_JVM_PERFORMANCE_OPTS=“-server -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true”
#重启kafka集群
更多推荐
已为社区贡献1条内容
所有评论(0)