Tag Archives: Error: VM option ‘UseG1GC’ is experimental and must be enabled via XX:+UnlockExperimentalVMOptions.

[Solved] kafka Startup Error: Error: VM option ‘UseG1GC’ is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.

The node hung up the next day after the Kirin server installed Kafka

Prompt VM option ‘useg1gc’ is empirical and must be enabled via – XX: + unlockexperimentalvmoptions

Find this configuration directly and delete it
the configuration path is as follows:
/APP/Kafka/Kafka_2.12-2.8.0/bin/kafka-run-class.SH
after opening, find:
Kafka_JVM_PERFORMANCE_OPTS=”-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20

Directly delete – XX: + useg1gc. Restart ZK cluster and start Kafka cluster

The service is normal.