You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Satendra Pratap Singh <sa...@gmail.com> on 2021/04/18 18:24:42 UTC

Unable to run kafka on ec2 free tier instance

Hi Team,

I have setup an one node kafka on ec2 free instance which has 8 gb ram and
256 GB hdd. I have installed java 8 on ec2. When I am trying to start kafka
getting error like

OpenJDK 64-Bit Server VM warning: INFO:
os::commit_memory(0x0000000700000000, 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/ubuntu/kafka_2.12-2.7.0/hs_err_pid1920.log

I have increased the JAVA_HEAP but nothing happened. How to solve this
problem?

Looking forward to hearing from you.

Re: Unable to run kafka on ec2 free tier instance

Posted by Alexandre Dupriez <al...@gmail.com>.
Hi Satendra,

The JVM core indicates you are running out of system memory.
Increasing the heap size of your JVM will not help; if anything, it
will make things worse.
You need to check which processes occupy system memory (look for their
resident set size) and work on reducing memory consumption
accordingly.

Thanks,
Alexandre

Le dim. 18 avr. 2021 à 09:53, Satendra Pratap Singh
<sa...@gmail.com> a écrit :
>
> Hi Team,
>
> I have setup an one node kafka on ec2 free instance which has 8 gb ram and
> 256 GB hdd. I have installed java 8 on ec2. When I am trying to start kafka
> getting error like
>
> OpenJDK 64-Bit Server VM warning: INFO:
> os::commit_memory(0x0000000700000000, 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/ubuntu/kafka_2.12-2.7.0/hs_err_pid1920.log
>
> I have increased the JAVA_HEAP but nothing happened. How to solve this
> problem?
>
> Looking forward to hearing from you.