Increase the number of allowed file handles per process (and possibly for the entire system).
There are two file handle limits that can affect FishEye/Crucible: the total number of file handles allowed per process and the number of file handles allowed on the entire system.
FishEye/Crucible can hold a high number of open file handles which often exceeds common per-process default limits – usually between 1000 and 4000 open files. If these limits are reached we recommend increasing the limit to 40000. The total number of file handles allowed on the entire system is usually set high enough by default but on an server with many other running applications this too may need to be increased.
These settings may vary between operating systems so please check with a system administrator or perform additional research before making any changes. Described below is the most common approach to troubleshooting and fixing this problem.
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 (replace FISHEYE_USER with the name of the user that will run FishEye/Crucible or use * to make the change for all users):
Single user: FISHEYE_USER
It is recommended to set the limits for the FISHEYE_USER explicitly first before increasing the limit 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.