File descriptors and user connections

ulimit -Sn new_value

where n is the current value for the soft limit, and new_value is the value to which you want to increase the soft limit.

Note You can use the preceding commands in your RUN_server_name file to increase the hard and soft limits. The RUN_server_name file is a Bourne shell script, be sure to use the Bourne shell versions of these commands in the RUN_server_name file.

Increasing the hard limit

To increase the hard limit, use a program like the sample program shown in “Sample program” on page 37.

vSetting up the sample program to increase the hard limit

1Create file_name.c (where file_name is the name you give the file), by using an ASCII text editor. Type the text shown in the sample in “Sample program” on page 37.

2Compile the file:

cc file_name.c -oprogram_name

where file_name is the name of the source file you created, and program_name is the name you want to give the program.

3Change the program’s permissions and ownership so that it will execute as “root”:

chmod 755 program_name chown root program_name

where program_name is the name of the compiled program.

4The “root” user can use the program to start Adaptive Server with increased user connections by typing the following command at the operating system prompt:

#program_name dataserver -dmaster_device_name

36

Adaptive Server Enterprise

Page 52
Image 52
Sybase DC35823-01-1500-04 manual Increasing the hard limit, File descriptors and user connections