My Oracle Support Banner

Batch Jobs Fail with "java.lang.OutOfMemoryError: Unable To Create New Native Thread" on Solaris with Java SE 8 (Doc ID 2451073.1)

Last updated on MARCH 31, 2023

Applies to:

Java SE JDK and JRE - Version 8 to 8
Information in this document applies to any platform.

Symptoms

Batch jobs that launch multiple Java Virtual Machines (JVMs) fail with "java.lang.OutOfMemoryError: unable to create new native thread" after upgrading Solaris systems to Java SE 8 or higher.

The batch jobs are started with a default 'java' command.

The crash produces a Hotspot Fatal Error Log (hs_err_pid<PID>.log) that shows the following error:

Changes

 Upgrade a Solaris system to Java SE 8 from an older version, such as Java SE 6 or Java SE 7.

Cause

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
Symptoms
Changes
Cause
Solution
References


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