Mac m1 uses pd to start centos8 virtual machine install and start kafka got Error: VM option 'UseG1GC'

created at 02-23-2022 views: 9


Error: VM option 'UseG1GC' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

According to the error message, go to the kafka decompression directory bin/ file, use vim to open it, then use /UseG1GC to search for this piece of configuration information, and delete this piece of configuration

error code

After removing it, continue to restart kafka. If there is a similar problem, you can see if there is an abnormally similar configuration, you can try to delete it, and remember to save the backup.

created at:02-23-2022
edited at: 02-23-2022: