Not sure this is the problem, but it could be:
Check out the entry in /proc/sys/fs/file-max
$ cat /proc/sys/fs/file-max
To change the value:
echo XXXXX > /proc/sys/fs/file-max
Hope this helps.