EBIworld.com > EBI/Clarify Tips > Increase Number of File Handles in EBI Linux

Increase Number of File Handles in EBI Linux

TAGS: EXTOL Linux / EXTOL install /


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.

EXTOL recommends:

To determine the maximum number of file handles for the entire system, run:
cat /proc/sys/fs/file-max

To determine the current usage of file handles, run:
cat /proc/sys/fs/file-nr

SYSTEM FILE HANDLES

Step 1
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:

ulimit -n
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”

For More EXTOL Business Integrator Tips


By: on
load('http://www.extol.com/extolnews.rss'); $feed = array(); foreach ($rss->getElementsByTagName('item') as $node) { $item = array ( 'title' => $node->getElementsByTagName('title')->item(0)->nodeValue, 'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue, 'link' => $node->getElementsByTagName('link')->item(0)->nodeValue, 'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue, ); array_push($feed, $item); } $limit = 4; echo ' A free web counter provided by GoStats.