What is causing java.lang.OutOfMemoryError: Unable to create new native thread

(Doc ID 2232666.1)

Last updated on NOVEMBER 29, 2017

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


You can encounter the "java.lang.OutOfMemoryError: Unable to create new native thread" whenever the JVM asks for a new thread from the OS. Whenever the underlying OS cannot allocate a new native thread, this OutOfMemoryError will be thrown. The exact limit for native threads is very platform-dependent. This article describes a test that can be run to find out those limits.


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