# Native memory allocation (mmap) failed to map 131072 bytes for committing reserved memory

Dear friends in druid:
I am anxious about the issue that I found every data-server was broken.

I opened the historical.log , and see this sentences.

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

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

And I also found there exist many pid files in the root directory.

And I opened one hs_err_pid.log file,And see this:

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

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

Possible reasons:

The system is out of physical RAM or swap space

The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap

Possible solutions:

Reduce memory load on the system

Increase physical memory or swap space

Check if swap backing store is full

Decrease Java heap size (-Xmx/-Xms)

Decrease number of Java threads

Decrease Java thread stack sizes (-Xss)

Set larger code cache with -XX:ReservedCodeCacheSize=

JVM is running with Zero Based Compressed Oops mode in which the Java heap is

placed in the first 32GB address space. The Java Heap base address is the

maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress

to set the Java Heap base and to place the Java Heap above 32GB virtual address.

This output file may be truncated or incomplete.

Then I check the physical ram

I have post three files in the attachment.

Anyone who can help me?

historical.log (1.07 MB)

jvm.config (215 Bytes)