The OC4J Instance Can Not Be Started. java.lang.RuntimeException: Maximum Number Concurency for the Timer has been reached (Doc ID 788868.1)

Last updated on FEBRUARY 24, 2017

Applies to:

Oracle Containers for J2EE - Version 10.1.3.0.0 to 10.1.3.5.0 [Release AS10gR3]
Information in this document applies to any platform.
***Checked for relevance on 23-Mar-2012***
***Checked for relevance on 19-May-2015***

Symptoms

In an Application Server 10.1.3 environment, one of the OC4J Instances can not be started. 

The following java exception appears in the $ORACLE_HOME/opmn/logs/<oc4j instance log file>:
java.lang.RuntimeException: Maximum Number Concurency for the Timer has been reached
at oracle.ias.container.scheduler.ExecutorService.scheduleForExecution(ExecutorService.java:230)
at oracle.ias.container.scheduler.ExecutorService.inform(ExecutorService.java:189)
at oracle.ias.container.event.EventService.inform(EventService.java:196)
at oracle.ias.container.event.EventService.doSubscriberPush(EventService.java:112)
at oracle.ias.container.event.EventService.doRun(EventService.java:524)
at oracle.ias.container.ContainerService.run(ContainerService.java:403)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:595)

Taking a thread dump (kill -3 <pid>) of the OC4J instance while starting up shows the following java deadlock:

Found one Java-level deadlock:

"SystemThreadGroup-4":
  waiting to lock monitor 0x000000010068f198 (object 0xffffffff603e8120, a com.evermind.server.ApplicationServer),
  which is held by "OC4J Launcher"
"OC4J Launcher":
  waiting to lock monitor 0x000000010068f3a0 (object 0xffffffff603e82f0, a java.lang.Object),
  which is held by "SystemThreadGroup-4"

Java stack information for the threads listed above:

"SystemThreadGroup-4":
        at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java:2584)
        - waiting to lock <0xffffffff603e8120> (a com.evermind.server.ApplicationServer)
        at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:81)
        at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
        - locked <0xffffffff603e82f0> (a java.lang.Object)
        at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
        at java.lang.Thread.run(Thread.java:595)
"OC4J Launcher":
        at oracle.ias.container.timer.Timer.passivate(Timer.java:529)
        - waiting to lock <0xffffffff603e82f0> (a java.lang.Object)
        at oracle.ias.container.timer.EJBTimerImpl.passivate(EJBTimerImpl.java:115)
        at oracle.ias.container.timer.EJBTimerServiceImpl.passivateBeanTimers(EJBTimerServiceImpl.java:207)
        at com.evermind.server.ejb.EJBPackageDeployment.processTimers(EJBPackageDeployment.java:592)
        at com.evermind.server.ejb.EJBPackageDeployment.processTimers(EJBPackageDeployment.java:578)
        - locked <0xffffffff603a0110> (a oracle.oc4j.admin.management.util.NotifyingMap)
        at com.evermind.server.ejb.EJBContainer.processTimers(EJBContainer.java:1675)
        at com.evermind.server.ejb.EJBContainer.stop(EJBContainer.java:330)
        - locked <0xffffffff603a01c0> (a java.lang.Object)
        at com.evermind.server.ejb.EJBContainer.componentStop(EJBContainer.java:278)
        at com.evermind.server.Application.doStop(Application.java:2092)
        - locked <0xffffffff60736c60> (a com.evermind.server.Application)
        at com.evermind.server.Application.setConfig(Application.java:475)
        - locked <0xffffffff60736c60> (a com.evermind.server.Application)
        at com.evermind.server.Application.setConfig(Application.java:339)
        at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1895)
        - locked <0xffffffff603e8120> (a com.evermind.server.ApplicationServer)
        at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1651)
        at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1034)
        at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
        - locked <0xffffffff603a04a8> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:595)

Found 1 deadlock.

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