"OutOfMemoryError: Unable To Create New Native Thread" (Doc ID 462808.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Containers for J2EE - Version 9.0.4.0.0 to 10.1.3.5.0 [Release AS10g to AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 23-Sep-2015***

Symptoms

Application fails with some errors, even though it looks like there is plenty of heap memory to run with:  

java.lang.OutOfMemoryError: unable to create new native thread

This error mean that the JVM required to created a new thread but it failed, most frequent reason is that the limit of processes has been reached.
This error may be thrown by any java program either standalone or the Application Server.

It is actually more related to the OS resources availability and the application usage of resources, like number of threads.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms