Determining ulimit segment settings

The ulimit command sets or reports process resource limits as defined in the /etc/security/limits.conf file. This file contains these limits:

core
Limits the core file size (KB).
data
The maximum data size (KB).
fsize
The maximum filesize (KB).
memlock
The maximum locked-in-memory address space (KB).
nofile
The maximum number of open file descriptors.

If you are running InfoPrint Manager using a non-root user, for example ipm1, update /etc/security/limits.conf file with:

ipm1 soft nofile = 8192

ipm1 hard nofile = 8192

rss
The maximum resident set size (KB).
stack
The maximum stack size (KB).
cpu
The maximum CPU time (MIN).
nproc
The maximum number of processes.

If you are running InfoPrint Manager using a non-root user, for example ipm1, update /etc/security/limits.conf file with:

ipm1 soft nproc = 8192

ipm1 hard nproc = 8192

as
The address space limit (KB).
maxlogins
The maximum number of logins for the user.
maxsyslogins
The maximum number of logins on the system.
priority
The priority to run user process with.
locks
The maximum number of file locks the user can hold.
sigpending
The maximum number of pending signals.
msgqueue
The maximum memory used by POSIX message queues (bytes).
nice
The maximum nice priority allowed to raise to values: [-20, 19].
rtprio
The maximum real-time priority.

Since InfoPrint Manager services can be started by systemd at boot, but also on command line using the appropriate scripts, resource limits must be set in multiple places.

  1. To modify resource limits for services and processes that are started by systemd at boot or with the systemctl command, edit the /etc/systemd/system/ipm-<servicename>.service.d/override.conf file, uncomment or add the appropriate keyword and set the desired value. Restart the service using systemctl. Only root and the user running InfoPrint Manager can start, stop, or restart an InfoPrint Manager service using systemctl.

    The defaults are:

    LimitNOFILE=8192
    LimitNPROC=8192
    LimitCORE=infinity
    For more information, see the man page for systemd system.conf (5).

  2. To modify resource limits for services and processes that are started outside of systemd (for example on command line), edit the /etc/security/limits.conf file. For more information, see the man page for limits.conf (5).