Too many open files

I am using 4.0.2 Activeworks(webmethods). I am getting the following error frequently and adapter are going to down.

Jul 25 15:50:45 aviciiactc Adapter40: Adapter40: [System] (96) Adapter “ProductSyncJdeNotifier”: could not start java.io.IOException: Too many open files
Jul 25 15:57:59 aviciiactc Adapter40: Adapter40: [System] (96) Adapter “ProductSyncJdeNotifier”: could not start java.io.IOException: Too many open files
Jul 25 17:19:31 aviciiactc Adapter40: Adapter40: [System] (96) Adapter “ProductSyncJdeNotifier”: could not start java.io.IOException: Too many open files

Please let me know the why its happening.

This probably is an OS level issue and not an application level issue. What OS is your application running on?

  1. If you see the “Too many open files error message”, you are most likely running out of file descriptors.

On Solaris:
Add the following to your /etc/system file
to increase your maximum file descriptors per process:
set rlim_fd_max = 4096 or 2048 based on your requirement.

  1. You can also try using the “ulimit” utility on Unix to set the file descriptors.

My application running on solaris 2.x

My application run on SunOS 5.7

Thanx Uday.