Too many open files

On our Glassfish enviroment we started seeing the following error: Too many open files

Its caused by a limit on the OS. To find out your OS limit type:

# ulimit -n

To check how many open files a process may have find out its PID and type:

# lsof -p XXX | wc -l

The solution is:

# vim /etc/security/limits.conf

* soft nofile 2048
* hard nofile 2048

(yes also the *)

Now restart sysctl:

# sysctl -p

Logoff and logon and check it now

#ulimit -a

Hope this helps.

One thought

Leave a Reply

Your email address will not be published. Required fields are marked *