Sun Microsystems 820434310 manual Linux Configuration, File Descriptor Setting

Models: 820434310

1 128
Download 128 pages 34.03 Kb
Page 97
Image 97
File Descriptor Setting

Linux Configuration

File Descriptor Setting

On the Solaris OS, setting the maximum number of open files property usingulimit has the biggest impact on efforts to support the maximum number of RMI/IIOP clients.

To increase the hard limit, add the following command to /etc/system and reboot it once:

set rlim_fd_max = 8192

Verify this hard limit by using the following command:

ulimit -a -H

Once the above hard limit is set, increase the value of this property explicitly (up to this limit) using the following command:

ulimit -n 8192

Verify this limit by using the following command:

ulimit -a

For example, with the default ulimit of 64, a simple test driver can support only 25 concurrent clients, but with ulimit set to 8192, the same test driver can support 120 concurrent clients. The test driver spawned multiple threads, each of which performed a JNDI lookup and repeatedly called the same business method with a think (delay) time of 500 ms between business method calls, exchanging data of about 100 KB. These settings apply to RMI/IIOP clients on the Solaris OS.

Linux Configuration

The following parameters must be added to the /etc/rc.d/rc.local file that gets executed during system start-up.

<-- begin

#max file count updated ~256 descriptors per 4Mb.

Specify number of file descriptors based on the amount of system RAM. echo "6553" > /proc/sys/fs/file-max

#inode-max 3-4 times the file-max #file not present!!!!!

#echo"262144" > /proc/sys/fs/inode-max #make more local ports available

echo 1024 25000 > /proc/sys/net/ipv4/ip_local_port_range #increase the memory available with socket buffers echo 2621143 > /proc/sys/net/core/rmem_max

Chapter 5 • Tuning the Operating System and Platform

97

Page 97
Image 97
Sun Microsystems 820434310 manual Linux Configuration, File Descriptor Setting