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集群
版权归原作者 潇湘梦 所有, 如有侵权,请联系我们删除。