Skip to main content

Exception accepting channel java.io.IOException: Too many open files !

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
sapien
Offline
Joined: 2009-12-22

Hi,
We are executing performance tests on a secure (https) webservice deployed in Glassfish 3.0.1 on Solaris 10.
After a couple of minutes the Server stops responding with the following in logs:

[#|2012-05-09T15:23:39.538+0800|WARNING|glassfish3.0.1|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=14;_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:145)
at com.sun.grizzly.TCPSelectorHandler.acceptWithoutRegistration(TCPSelectorHandler.java:743)
at com.sun.enterprise.v3.services.impl.monitor.MonitorableSSLSelectorHandler.acceptWithoutRegistration(MonitorableSSLSelectorHandler.java:82)
at com.sun.grizzly.TCPSelectorHandler.onAcceptInterest(TCPSelectorHandler.java:768)
at com.sun.grizzly.SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:295)
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:619)

Increased the openfiles size to a considerable amount. Now the server is holding up, my question is:
The open files size keeps increasing, will it hit the ceiling again ? What is the behaviour? will it ramp up and ramp down.
Is it a cause for worry ?

Thanks.