Kafka Broker not getting up

Hi,

I have installed Kafka Latest version in ubuntu linux machine using AWS EC2.
I have started zookeeper and running fine.
while starting Kafka broker, facing below issue. Can you please help to check and what needs to be correct.

Zookeeper

kafka 5450 1.3 8.2 2662220 80140 pts/1 Sl 16:06 0:01 /usr/lib/jvm/jdk-17.0.9/bin/java -Xmx512M -Xms512M -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -XX:MaxInlineLevel=15 -Djava.awt.headless=true -Xlog:gc*:file=/kafka/confluent-7.5.2/bin/…/logs/zookeeper-gc.log:time,tags:filecount=10,filesize=100M -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dkafka.logs.dir=/kafka/confluent-7.5.2/bin/…/logs -Dlog4j.configuration=file:/kafka/confluent-7.5.2/bin/…/etc/kafka/log4j.properties -cp /kafka/confluent-7.5.2/bin/…/share/java/kafka/:/kafka/confluent-7.5.2/bin/…/share/java/confluent-telemetry/ org.apache.zookeeper.server.quorum.QuorumPeerMain …/etc/kafka/zookeeper.properties

Kafka Broker

Java HotSpot™ 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error=‘Not enough space’ (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.

An error report file with more information is saved as:

/kafka/confluent-7.5.2/bin/hs_err_pid5507.log

want to know one more thing is, where we need to install Java, is it in root or local user
I am using single broker, not multi broker.

Thanks in Advance.

hey @asangula

which EC2 instance did you use?
could you check the following linux settings:
vm.max_map_count

Best,
Michael

Hi Michel,

I have reduced, java and its working fine.
java -Xmx512M -Xms512M in kafka broker, by defaullt this value showing 1G memory.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.