A common error seen with EBI Linux installs are errors that are related to ‘Too Many Open Files’.
In a related post, we review what occurs when users incur the 'Too Many Open Files’ error:
To accommodate increasing the number of file handlers, EXTOL created Tech Memo: 2009071.
To determine the maximum number of file handles for the entire system, run:
To determine the current usage of file handles, run:
SYSTEM FILE HANDLES
Change the maximum number of file handles can be changed to 70000 in the proc file system without reboot. For example:
# echo 70000 > /proc/sys/fs/file-max
Step 2 – (requires reboot to take effect)
To make the change permanent, add or change the following line in the file /etc/sysctl.conf. This file is used during the boot process:
# echo “fs.file-max=70000” >> /etc/sysctl.conf
MANAGING INDIVIDUAL PROCESS FILE HANDLES
There is also a limit of how many files any given process may have open at one time. You can change this value to 35000 by opening a terminal session with the user profile used to run the EBI server. Type the following command at the command prompt to see, per user, the open file limit:
It probably will display 1024.
TASK - (requires reboot to take effect)
Change the open file limit to 35000 by performing the following:
- cd /etc/security
- vi or emacs limits.conf
- The format for adding an entry in this file is as follows:
<domain> <type> <item> <value>
- Add line:
ebi_user hard nofile 35000
- Where “ebi_user” is the user profile running the EBI server job
ADJUSTING VNC SERVER START JOB
If you use VNC to access EBI, you will need to adjust how the VNC server job starts during the machine’s boot process so it picks up the changes made to the /etc/security/limits.conf file.
TASK (requires reboot to take effect)
Edit the /etc/rc.d/init.d/vncserver file and change how the VNC server is started:
- change the job startup process from “runuser” to “su”
By: Sean Hoppe on