The Answer to Life, the Universe, and Everything

Tuesday, January 06, 2009

SocketException: Too many open files

If you see the following error, Too many open files

Try to change the max open file value for the user

#check current value by calling
ulimit -a
#Set new max open file
ulimit -n 102400

as well as the OS

#Check current value
cat /proc/sys/fs/file-max
#Set the new max open file by adding the following
vi /etc/sysctl.conf
fs.file-max = 49500

No comments: