18.2. Linux User Limits

SavaPage server may run out of file descriptors as the system defaults are normally very low. A file descriptor (FD) is a handle created by a process when a file is opened. Each process can use a limited number of FDs as specified per user in an OS level user limit.

Beware that apart from regular files that are accessed by SavaPage from disk, each incoming request that uses a TCP socket also consumes one file descriptor from the total available for the process.

On Debian based systems the number of process FDs for the savapage user can be increased as follows.

Edit the file Edit /etc/security/limits.conf like this:

sudo vi /etc/security/limits.conf

and add the following lines at the end of the file:

savapage    hard    nofile    65535
savapage    soft    nofile    65535

Next, open /etc/pam.d/su like this:

sudo vi /etc/pam.d/su

and uncomment the following line:

session    required   pam_limits.so

You also need to edit the /etc/pam.d/common-session and /etc/pam.d/common-session-noninteractive files. Open the files like this:

sudo vi /etc/pam.d/common-session
sudo vi /etc/pam.d/common-session-noninteractive

and for each file add the following line to the end:

session required pam_limits.so

Finally, check whether the settings are applied with this command:

sudo su - savapage -c "ulimit -n"

This should output the value 65535.