Gateway Fails With "java.lang.OutOfMemoryError: unable to create new native thread."
(Doc ID 2108877.1)
Last updated on JULY 21, 2023
Applies to:
Oracle API Gateway - Version 11.1.1.6.1 and later Information in this document applies to any platform.
Symptoms
An Oracle API Gateway (OAG) instance fails with
java.lang.OutOfMemoryError: unable to create new native thread
Changes
The problem is more likely to occur on Windows, where the maximum process address space for 32-bit Java applications is a mere 2 GBytes.
The problem is more likely to occur when the initial and minimum size of the Java heap has been increased by setting -Xms to a large value.
The problem is more likely to occur during high load.
The problem is more likely to occur when the system is undersized (not enough memory).
The problem is more likely to occur on newer Linux versions, where changed glibc behavior massively increases the memory usage of multithreaded applications.
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!