Increasing the number of file descriptors in Linux
As a multiuser operating system, Linux limits the number of file descriptors available to each user, with a default of 1024
. As all access to files, sockets, threads, and others requires file descriptors, this limit is too low for a production SOA Suite application. Increasing the limit improves performance and stability.
Getting ready
You will need root
access to the Linux server on which SOA Suite is installed for this recipe.
How to do it…
To increase the number of file descriptors in Linux, perform the following steps:
Connect to the Linux server as the user that runs the SOA Suite.
Verify that the current limit is
1024
by using the following command:$ ulimit –n 1024
Now, log out.
Connect to the Linux server as
root
.Edit the file
/etc/security/limits.conf
.Scroll down the file and find the section that looks like this:
#<domain> <type> <item> <value> #
Add limits for the user that runs your SOA Suite applications...