In some cases, you may run out of file or inodes. The new 2.2 kernel allows you to finetune those parameters without a need to recompile the kernel itself:

echo 32768 > /proc/sys/fs/file-max
echo 65536 > /proc/sys/fs/inode-max