Setting open file limits
Last modified: 10/25/2026

NOTICE: Any setting you make to change default kernel limits and/or
user limits must be implemented with caution. All changes should be
thoroughly tested on development servers whenever possible. If you are
not careful when adjusting default limits you can render your server
inoperable.

On RHEL 8, 9, and 10 the default soft limit for open files, including
sockets, is 1024. For load balancer applications with a high volume
of connections you will need to increase the default value.

The global ulimit for nofiles in /etc/security/limits.conf is ignored
for systemd services. The DRLB service files set the limit:

[Service]
LimitNOFILE=65535

To change the limit, use a drop-in file so RPM updates keep your
setting:

# systemctl edit drlb_server

[Service]
LimitNOFILE=262144

# systemctl restart drlb_server

For runtime testing you can change the nofile limit for a process
using the prlimit command:

# pgrep -a drlb_server
# prlimit --pid [pid] --nofile=32767:65535

When you run the DRLB server from a shell for testing, set the limits
in the same shell before starting the server:

# ulimit -n 32767
# ulimit -H -n 65535

To check the file limits for the DRLB process(es):

# pids=$(pgrep drlb_server)
# for p in $pids; do cat /proc/$p/limits | grep -i file; done

The Max open files setting should match your settings for soft and
hard limits. To see how many files the process(es) have open:

# for p in $pids; do ls -l --color=none /proc/$p/fd; done
