Kafka start error cannot allocate memory, which is not enough

Source: Internet
Author: User
Error hint:
Java Hotspot (TM) 64-bit Server VM warning:info:os::commit_memory (0x00000000c5330000, 986513408, 0) failed; er Ror= ' Cannot allocate memory ' (errno=12)
#
There are insufficient memory for the Java Runtime environment to Conti Nue.
# Native memory allocation (malloc) failed to allocate 986513408 bytes for committing reserved memory.
# A error report file with more information is saved as:
# hs_err_pid5535.log
Workaround:
kafka-server-start.sh C8/>export kafka_heap_opts= "-xmx1g-xms1g"
modified to
export kafka_heap_opts= "-xmx256m-xms128m"
because my memory is 1G
 
</pre><pre>

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.