OutOfMemoryError: Unable To Create New Native Thread After Some Minutes Running (Doc ID 352945.1)

Last updated on DECEMBER 05, 2016

Applies to:

Oracle Containers for J2EE - Version 9.0.2.0.0 and later
Oracle Fusion Middleware - Version 9.0.2.0.0 to 10.1.3.5.1 [Release 9iAS to AS10gR3]
Oracle WebLogic Server - Version 9.0 and later
Information in this document applies to any platform.
***Checked for relevance on 28-Aug-2015***

Symptoms

The JVM running an OC4J component is working correctly since the moment of the last start up until around 20 minutes later, when it becomes non responsive to OPMN pings, which decides it needs to restart it as per its dead process detection algorithm.

This causes a JVM abrupt process termination , loosing session information and needing to reallocate all resources at the next restart.

06/01/11 15:39:28 Start process
--------
06/01/11 15:39:30 Error starting ORMI-Server. Unable to bind socket: Address already in use
06/01/11 15:39:30 Application default (default) initialized...
06/01/11 15:39:30 Application <app> (<app>) initialized...
06/01/11 15:39:30 Application <app2> (<app2>) initialized...
06/01/11 15:39:30 Warning: Error reading transaction-log file

(/opt/oracle/product/10gAS/j2ee/<OC4Jinstance>/persistence/<OC4Jinstance>_default_island_1/transaction.state) for recovery: premature end of file
06/01/11 15:39:30 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
06/01/11 15:39:30 Recovery completed, 0 connections committed and 0 rolled back...
06/01/11 15:39:30 Web-App default:defaultWebApp (0.0.0.0/0.0.0.0:<port>/j2ee) started...
06/01/11 15:39:31 Web-App <app>:<app> (0.0.0.0/0.0.0.0:<port>/<contextroot>) started...
06/01/11 15:39:32 Oracle Application Server Containers for J2EE 10g (<version>) initialized
06/01/11 15:39:32 java.lang.NullPointerException
06/01/11 15:39:32 at com.evermind.server.rmi.RMIServer.run(RMIServer.java:471)
06/01/11 15:39:32 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.jaa:186)
06/01/11 15:39:32 at java.lang.Thread.run(Thread.java:534)
06/01/11 15:39:52 Web-App default:dms (0.0.0.0/0.0.0.0:3302/dmsoc4j) started...
...
later on in the log:
...
06/01/11 15:42:12 java.lang.OutOfMemoryError: unable to create new native thread
06/01/11 15:42:12 at java.lang.Thread.start(Native Method)
06/01/11 15:42:12 at
com.evermind.util.ReleasableResourcePooledExecutor.addThread(ReleasableResourcePooledExecutor.java:21)

06/01/11 15:42:12 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute(PooledExecutor.java:978)
06/01/11 15:42:12 at com.evermind.util.ThreadPool.launch(ThreadPool.java:255)
06/01/11 15:42:12 at com.evermind.server.http.AJPConnectionListener.run(AJPConnectionListener.java:74)
06/01/11 15:42:12 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
06/01/11 15:42:12 at java.lang.Thread.run(Thread.java:534)

--------
06/01/11 15:44:19 Stop process

Changes

There was a reconfiguration of the system to adapt some of the java-options for that specific OC4J instance.

Cause

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