Kafka failed to map 1073741824 bytes for committing reserved memory
<p>I am installing kafka on an aws t2 instance(one that has 1gb of memory).</p>
<p>(1) I download kafka_2.11-0.9.0.0
(2) I run zookeeper bin/zookeeper-server-start.sh config/zookeeper.properties
(3) I try running bin/kafka-server-start.sh config/server.properties
and I get</p>
<p>Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12)</p>
<p>.#</p>
<p>.# There is insufficient memory for the Java Runtime Environment to continue.</p>
<p>.# Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory.</p>
<p>.# An error report file with more information is saved as:</p>
<p>.# /home/machine_name/kafka_2.11-0.9.0.0/hs_err_pid9161.log</p>
<p>I checked all propertes in the server.properties config file and in the documentation for properties that could try to do something like this but coudn't find anything.</p>
<p>Does anyone know why is kafka trying to allocated 1 gb when starting?</p>