I am installing kafka on an aws t2 instance(one that has 1gb of memory).

(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

Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit\_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (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:

.# /home/machine\_name/kafka\_2.11-0.9.0.0/hs\_err\_pid9161.log

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.

Does anyone know why is kafka trying to allocated 1 gb when starting?