My Oracle Support Banner

Application Throws "java.lang.OutOfMemoryError: unable to create new native thread" (Doc ID 1373351.1)

Last updated on JANUARY 06, 2019

Applies to:

Java Platform, Standard Edition - Version 5.0 to 7 [Release 5.0 to 7]
Java SE JDK and JRE - Version 1.5.0 to 7 [Release 1.5 to 7]
Oracle Solaris on SPARC (32-bit)
Oracle Solaris on x86 (32-bit)
Oracle Solaris on SPARC (64-bit)
Oracle Solaris on x86-64 (64-bit)


In the log file of an application, an error is thrown as shown below.  The root of the error is an "OutOfMemoryError: unable to create new native thread".

<Nov 1, 2011 5:20:43 PM EDT> <Error> <OSB Transform> <BEA-382515> <Callout to java method "public static java.lang.String com.mhe.authentication.MHEAuthService.simpleAuthentication(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String)" resulted in exception: null
at sun.reflect.GeneratedMethodAccessor402.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at stages.transform.runtime.JavaCalloutRuntimeStep$
Truncated. see log file for complete stacktrace
Caused By: java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(
at org.apache.log4j.PropertyConfigurator.configureAndWatch(
at com.mhe.authentication.MHEAuthServiceHandler.<init>(
at com.mhe.authentication.MHEAuthService.simpleAuthentication(
Truncated. see log file for complete stacktrace





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.