CHAPTER 3 Configuring the Operating System

For Linux

The number of file descriptors per process is limited to 10,000. You can set the number of file descriptors using ulimit.

For Sun Solaris

For Sun Solaris, you can set both soft and hard limits for file descriptors. The soft limit can be increased up to the hard limit by the user, but the hard limit can be increased only by someone with “root” permissions. The soft limit determines the number of open file descriptors available to an Adaptive Server engine. The limit is 10,000.

Although most of the open file descriptors are available for user connections, a few are used by Adaptive Server engines for opening files and devices.

See the System Administration Guide for additional information on user connections.

Displaying current soft and hard limits

To display the current soft limit, for C shells, enter:

limit descriptors

For Bourne shells, enter:

ulimit -n

To display the current hard limit for C shells, enter:

limit -h descriptors

For Bourne shells, enter:

ulimit -Hn

Increasing the soft limit

To increase the soft limit for C shells, enter:

limit descriptors n

For Bourne shells, enter:

Configuration Guide

35

Page 51
Image 51
Sybase DC35823-01-1500-04 For Linux, For Sun Solaris, Displaying current soft and hard limits, Increasing the soft limit