Gateway Fails With "java.lang.OutOfMemoryError: unable to create new native thread."
(Doc ID 2108877.1)
Last updated on FEBRUARY 25, 2021
Oracle API Gateway - Version 22.214.171.124.1 and later
Information in this document applies to any platform.
An Oracle API Gateway (OAG) instance fails with
java.lang.OutOfMemoryError: unable to create new native thread
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.
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.