Error message:
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/kafka-run-class.sh file, open it with vim, then use /UseG1GC to search for this piece of configuration information, and delete this piece of configuration
and then restart Kafka. If there are similar problems, you can see if there are abnormal similar configurations, you can try to delete them, and remember to backup and save them.
Read More:
- Oracle VM VirtualBox open replication virtual machine Error
- [Solved] IDEA Start Project Error: Abnormal build process termination:Could not create the Java Virtual Machine.
- How to Solve VMware Workstation Error: This virtual machine appears to be in use.
- [Solved] Win 10 Kafka error: failed to construct Kafka consumer
- [Solved] Mac M1 Brew install Error: Command failed with exit 128:git
- Mac Start IDEA Error: Cannot load JVM bundle…Value of IDEA_VM_OPTIONS is (null)
- [Solved] Mac Notebook M1 Chip Install Hashlips library npm error
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- [Solved] Kafka Error: kafka.common.InconsistentClusterIdException…
- Kafka executes the script to create topic error: error org apache. kafka. common. errors. InvalidReplicationFactorException: Replicati
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- Kafka error: ERROR There was an error in one of the threads during logs loading: java.lang.NumberFormatException: For input string: “derby” (kafka.log.LogManager)
- [Solved] Vscode connect virtual machine error: can’t be established
- Max virtual memory areas vm.max_map_count [65530] is too low, increase to at least
- Openstack virtual machine disk IO error [How to Solve]
- Exsi virtual machine is missing vmdk file error [How to Solve]
- [Solved] Upstream connect error or disconnect occurs after the k8s istio virtual machine is restarted
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- [Solved] Kafka Error: InvalidReplicationFactorException: Replication factor:
- [Solved] kafka startup Error: java.net.ConnectException: Connection refused