Demantra application Fails To Start With java.lang.OutOfMemoryError Unable To Create New Native Thread (Doc ID 755247.1)

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Demantra Demand Management - Version 7.1.1 and later
Information in this document applies to any platform.
***Checked for relevance on 20-Sep-2012***


Symptoms

On 7.1.1 in Production:
When attempting to start the JRUN service where Demantra is deployed,
the following error occurs in the JRUN logs.

ERROR
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start(Native Method)
at com.demantra.workflow.process.WFProcess.execute(WFProcess.java:230)
at com.demantra.workflow.process.WFProcess.recover(WFProcess.java:213)
at com.demantra.workflow.process.WFProcessManager.launchRecovery(WFProce
ssManager.java:500)
at com.demantra.workflow.util.WorkflowServer.initializeParameters(Workfl
owServer.java:175)
at com.demantra.workflow.util.WorkflowServer.init(WorkflowServer.java:13
7)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.
java:1200)
at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationServ
ice.java:791)
at jrun.servlet.WebApplicationService.postStart(WebApplicationService.ja
va:293)
at jrun.deployment.DeployerService.initModules(DeployerService.java:711)

at jrun.deployment.DeployerService.createWatchedDeployment(DeployerServi
ce.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.handleEvent(DeployerService.java:381)

at jrunx.kernel.JRunServiceDeployer.fireEvent(JRunServiceDeployer.java:7
10)
at jrunx.kernel.JRunServiceDeployer.deployServices(JRunServiceDeployer.j
ava:111)
at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at jrunx.kernel.JRun.startServer(JRun.java:575)
at jrunx.kernel.JRun.<init>(JRun.java:493)
at jrunx.kernel.JRun$1.run(JRun.java:346)
at java.security.AccessController.doPrivileged(Native Method)
at jrunx.kernel.JRun.start(JRun.java:343)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrunx.kernel.JRun.invoke(JRun.java:180)
at jrunx.kernel.JRun.main(JRun.java:168)


STEPS
The issue can be reproduced at will with the following steps:
1. Start jrun server
2. The demantra application does not start up.

 

 

The same issue can happen on other Application Servers (not just JRUN)

For instance on Oracle Application Server,
the opmn.log file will contain the following entry:

[pm-internal] OPMN server ready.  Request handling enabled.
[pm-requests] Request 2 Started.  Command: /start
[pm-process] Starting Process: HTTP_Server~HTTP_Server~HTTP_Server~1 (1724123691:0)
[pm-process] Starting Process: default_group~home~default_group~1 (1724123692:0)
[pm-process] Process Alive: HTTP_Server~HTTP_Server~HTTP_Server~1 (1724123691:26598)
[pm-requests] Request 2 Completed. Command: /start
[pm-process] Stopping Process: default_group~home~default_group~1 (1724123692:26599)
[libopmnoc4j] Process Stop Error: default_group~home~default_group~1 (1724123692:26599)
[libopmnoc4j] Failed to construct stop command for proc: 1724123692
[libopmnoc4j] Forcefully Terminating Process: default_group~home~default_group~1 (1724123692:26599)
[pm-process] Process Stopped: default_group~home~default_group~1 (1724123692:26599)\



the default_group_home_default_group_1.log  will contain the following entry:

Exception in thread "WFProcess_351" java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:574)
at com.demantra.common.mail.MailUtil.sendMail(MailUtil.java:55)
at com.demantra.common.task.Task.sendMail(Task.java:1229)
at com.demantra.common.task.Task.launch(Task.java:916)
at com.demantra.workflow.step.SelectionStep.doExecute(SelectionStep.java:123)
at com.demantra.workflow.step.LinkedStep.execute(LinkedStep.java:464)
at com.demantra.workflow.process.WFProcess.mainLoop(WFProcess.java:472)
at com.demantra.workflow.process.WFProcess.run(WFProcess.java:273)
at java.lang.Thread.run(Thread.java:595)

 

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