Kafka Error: Unrecognized VM option ' usecompressedoops ' error:clould not create the Java vritual machine. ERROR:A Fatal exception has occurres. Program would exit.

Source: Internet
Author: User
Tags zookeeper

  

  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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.