Unable To Connect To Discoverer Plus / Viewer Intermittently With '500 Internal Server Error Java.Lang.OutOfMemoryError: Unable To Create New Native Thread' Errors (Doc ID 1332528.1)

Last updated on SEPTEMBER 27, 2016

Applies to:

Oracle Discoverer - Version 10.1.2.0.2 to 10.1.2.3 [Release 10.1.2]
Information in this document applies to any platform.
*** Checked for relevance on 04-Dec-2014 ***

Symptoms

Intermittently users are unable to connect to Discoverer, getting error messages like

500 Internal Server Error
java.lang.OutOfMemoryError: unable to create new native thread


or

A connection error has occurred.
- An error occurred while creating the session. Please check for other errors.
- java.lang.OutOfMemoryError
Unable to retrieve connection list
- The connection list could not be retrieved. See other error messages for details.



/OracleHome/opmn/logs/OC4J~OC4J_BI_Forms~default_island~1
contains errors:




11/04/28 12:35:50 Discoverer Model - 10.1.2.55.26
11/04/28 12:35:53 java.lang.OutOfMemoryError: unable to create new native thread
11/04/28 12:35:53 at java.lang.Thread.start(Native Method)
11/04/28 12:35:53 at com.evermind.util.ReleasableResourcePooledExecutor.addThread(ReleasableResourcePooledExecutor.java:121)
11/04/28 12:35:53 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor.execute(PooledExecutor.java:978)
11/04/28 12:35:53 at com.evermind.util.ThreadPool.launch(ThreadPool.java:261)
11/04/28 12:35:53 at com.evermind.server.http.SessionAsyncInvalidateHandler.addSession(SessionAsyncInvalidateHandler.java:155)
11/04/28 12:35:53 at com.evermind.server.http.HttpApplication.checkSessionTimeouts(HttpApplication.java:6884)
11/04/28 12:35:53 at com.evermind.server.http.HttpSite.checkSessionTimeouts(HttpSite.java:1098)
11/04/28 12:35:53 at com.evermind.server.http.SessionTimeoutTask.checkSessionTimeouts(SessionTimeoutTask.java:171)
11/04/28 12:35:53 at com.evermind.server.http.SessionTimeoutTask.run(SessionTimeoutTask.java:145)
11/04/28 12:35:53 at com.evermind.util.TaskManager.run(TaskManager.java:183)
11/04/28 12:35:53 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
11/04/28 12:35:53 at java.lang.Thread.run(Thread.java:534)
11/04/28 12:57:05 Logkeys: exceptions discoiv.servlet_exceptions
11/04/28 12:57:05 Discoverer Model - 10.1.2.55.26
<201104281203024219>: Unexpected error in state machine: java.lang.OutOfMemoryError: unable to create new native thread
<201104281203024219>: Unexpected exception in state machine: java.lang.IllegalStateException: Rollback outside started state





The only way to get around this is to bounce the mid-tier.

Changes

OC4J_BI_Forms initial heap memory had been increased from default -Xms128M to -Xms256M

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