There is insufficient native memory for the Java
Issue
- There is insufficient native memory for the Java
- We are getting below Error when we try to start servers. Free -m shows that
we still have 38 GB Space un-utilized.
java.lang.OutOfMemoryError: classblock allocation, 10775624 loaded, 10752K
footprint, in check_alloc (classalloc.c:215).
Attempting to allocate 2G bytes
There is insufficient native memory for the Java
Runtime Environment to continue.
Possible reasons:
The system is out of physical RAM or swap space
In 32 bit mode, the process size limit was hit
Possible solutions:
Reduce memory load on the system
Increase physical memory or swap space
Check if swap backing store is full
Use 64 bit Java on a 64 bit OS
Decrease Java heap size (-Xmx/-Xms)
Decrease number of Java threads
Decrease Java thread stack sizes (-Xss)
Disable compressed references (-XXcompressedRefs=false)
=========================================
Environment
- Red Hat Enterprise Linux (RHEL)
- Oracle JRockit JDK
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
