My Oracle Support Banner

Java Crashes with Message "Native memory allocation (mmap) failed to map nnnnnnn bytes for committing reserved memory." (Doc ID 2521041.1)

Last updated on DECEMBER 27, 2021

Applies to:

Java SE JDK and JRE - Version 8 and later
Oracle Cloud Infrastructure - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.


A JVM crashes when trying to allocate native memory.   The following HotSpot Error log (hs_err_pid<PID>.log) snippet shows the interesting error:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.