Description of the error:
Under the Kafka installation directory, execute $ bin/zookeeper-server-start.sh config/zookeeper.properties &
Unrecognized VM option ' usecompressedoops '
Error:clould not create the Java vritual machine.
ERROR:A Fatal exception has occurres. Program would exit.
Workaround:
Locate bin/kafka-run-class.sh file, use Vim to open, this version of Me is in line 115
113 # JVM Performance Options
If [-Z ' $KAFKA _jvm_performance_opts]; Then
kafka_jvm_performance_opts= "-server -xx:+usecompressedoops -xx:+useparnewgc-xx:+useconcmarksweepgc-x X:+cmsclassunloadingenabled-xx:+cmsscavengebeforere Mark-xx:+disableexplicitgc-djava.awt.headless=true "
The fi
Remove-xx:+usecompressedoops This setting
To remove, after the result:
111 # JVM Performance Options
If [-Z ' $KAFKA _jvm_performance_opts]; Then
113 kafka_jvm_performance_opts= "-SERVER-XX:+USEPARNEWGC-XX:+USECONCMARKSWEEPGC-XX:+CMSCLASSUNLOADINGENABLED-XX: +cmsscavengebefo Reremark-xx:+disableexplicitgc-djava.awt.headless=true "
The fi
Then, save, exit. Again, execute,
Under the Kafka installation directory, execute $ bin/zookeeper-server-start.sh config/zookeeper.properties &
That is, this problem has been solved!
Reference Link: Kafka Introduction and environment building-kafka-about Cloud development
Kafka Error: Unrecognized VM option ' usecompressedoops ' error:clould not create the Java vritual machine. ERROR:A Fatal exception has occurres. Program would exit.