Opensso Hung with Error - "Too Many Open Files" (Doc ID 1560411.1)

Last updated on OCTOBER 07, 2015

Applies to:

Oracle OpenSSO - Version 8.0.1.1 and later
Information in this document applies to any platform.

Symptoms

Opensso is deployed on Oracle GlassFish Server 3.0.1 and results in a hang with the following error -

ERROR
-----------------------
[#|2013-04-26T10:19:30.659+1000|WARNING|oracle-glassfish3.0.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=16;_ThreadName=Thread-1;|Exception accepting channel
java.io.IOException: Too many open files
  at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
  at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:152)
  at com.sun.grizzly.TCPSelectorHandler.acceptWithoutRegistration(TCPSelectorHandler.java:743)
  at com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectorHandler.acceptWithoutRegistration(MonitorableSelectorHandler.java:95)
  at com.sun.grizzly.RoundRobinSelectorHandler.onAcceptInterest(RoundRobinSelectorHandler.java:86)
  at com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:290)
  at com.sun.grizzly.SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:258)
  at com.sun.grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:195)
  at com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:130)
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
  at java.lang.Thread.run(Thread.java:662)
|#]

 

A pfiles shows too many opensso log files being opened.

#grep opensso appservd_pfiles.out.1 | grep log
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAuthentication.error
  /opt/opensso/opensso/log/amAuthentication.error
  /opt/opensso/opensso/log/amAuthentication.error
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAuthentication.error
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent
  /opt/opensso/opensso/log/amAgent

# grep opensso appservd_pfiles.out.1 | grep log |wc -l
  63486

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