Increase the Number of Allowed System/User File Handles
Increase the permitted number of open file handles for the FishEye user and/or whole system. These settings may vary between operating systems, please check with a system administrator or research beforehand. Below is described the most common approach to troubleshooting and fixing this problem.
In general, there are two limits to the the number of file handles that will affect FishEye: the total number of file handles allowed on the system, and the number of file handles allowed per process for the user that runs FishEye. Currently FishEye can hold a high number of open file handles, exceeding common per-process default limits of 1000 to 4000 open files. At this point we recommend that if experiencing issues, to increase this limit to 40000. The total number of file handles allowed on the whole system is usually set high enough by default, but on a heavily loaded system may also need to be increased.
Setting the permitted number of file handles per process
To check the number of currently open file handles, run sudo lsof -u FISHEYE_USER (restricted to the FisheEye running user) or sudo lsof -p FISHEYE_PROCESS (restricted to the fisheye process). To check the permitted number of file handles per process, run ulimit -n To modify the permitted number of file handles per process, edit /etc/security/limits.conf and add (replacing FISHEYE_USER with the name of the user running fisheye or * for all users):
Setting the permitted number of file handles over the whole system
To check the number of open file handles, run sudo lsof.
To check the total number of open file permitted in the whole system, run cat /proc/sys/fs/file-max.
To modify the total number of open file permitted in the whole system, edit /etc/sysctl.conf and add the line:
Note: After making these changes the OS will need to be restarted. For further information please see this page.
The Ubuntu server requires additional additional steps in order have the larger limits register (based on this article and this article): add “session required pam_limits.so” in /etc/pam.d/common-session.
sudo vi /etc/pam.d/common-session
Add session required pam_limits.soto the end of the file.
Reboot the OS.
If FishEye is running under j2ee, add the ulimit into Fisheye's daemontool runscript.