users@glassfish.java.net

Running out of operating systems file descriptors. Cannot serve requests anymore. in Grizzly

From: Lasitha Kodikara <lasithabk_at_millenniumit.com>
Date: Wed, 21 Oct 2009 09:24:05 +0530

Hi All,

 

In our production server the following error occurs. We are having a 1
instance GF cluster. We are starting the server using root and when I check
the ulimit of the machine, it says unlimited. We are using Red Hat AS 4
Update 2 as the OS.

 

"

[root_at_mimax ~]# ulimit

Unlimited


"

 

Please help me to solve this problem.

 

Regards,

Lasitha

 

[#|2009-10-20T17:55:39.945+0530|SEVERE|sun-appserver2.1|javax.enterprise.sys
tem.container.web|_ThreadID=203;_ThreadName=SelectorThread-6061;_RequestID=8
25100e1-eedf-4fde-b2fb-436dd5972802;|Running out of operating systems file
descriptors. Cannot serve requests anymore.

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.enterprise.web.connector.grizzly.SelectorThread.handleAccept(Selecto
rThread.java:1478)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(Sel
ectorThread.java:1457)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThr
ead.java:1361)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(Select
orThread.java:1295)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(Select
orThread.java:1258)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.j
ava:1234)

|#]

 

[#|2009-10-20T17:55:39.946+0530|SEVERE|sun-appserver2.1|javax.enterprise.sys
tem.container.web|_ThreadID=203;_ThreadName=SelectorThread-6061;_RequestID=8
25100e1-eedf-4fde-b2fb-436dd5972802;|WEB0756: Caught exception during HTTP
processing.

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.enterprise.web.connector.grizzly.SelectorThread.handleAccept(Selecto
rThread.java:1478)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.handleConnection(Sel
ectorThread.java:1457)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.doSelect(SelectorThr
ead.java:1361)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startListener(Select
orThread.java:1295)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.startEndpoint(Select
orThread.java:1258)

      at
com.sun.enterprise.web.connector.grizzly.SelectorThread.run(SelectorThread.j
ava:1234)

|#]

 



*******************************************************************************************************************************************************************

"The information contained in this email including in any attachment is confidential and is meant to be read only by the person to whom it is addressed. If you are not the intended recipient(s), you are prohibited from printing, forwarding, saving or copying this email. If you have received this e-mail in error, please immediately notify the sender and delete this e-mail and its attachments from your computer."

*******************************************************************************************************************************************************************