New answers tagged

0

For RHEL and related distributions, there is now a new directory /etc/security/limits.d The files within this directory silently override the information in the /etc/security/limits.conf file(!). Check for 90-nproc.conf and you'll see the culprit there. You can create new files in this directory - they are read in numeric order, so for application ...


2

They are described quite well in the standard AIX documentation. fsize : Identifies the soft limit for the largest file a user's process can create or extend. core : Specifies the soft limit for the largest core file a user's process can create. cpu : Sets the soft limit for the largest amount of system unit time (in seconds) that a user's process ...


0

If you have the util-linux package installed, you set hard and soft limits for a particular process using the prlimit command. To set the soft and hard limits for maximum number of open files to 10 and 20, respectively, for a command command, run: prlimit -n10:20 command Arguments for the command can be provided as well: prlimit -n10:20 command arg1 ...


0

I'm using the below script, which works great. It uses cgroups through cgmanager. Name this script limitmem and put it in your $PATH and you can use it like limitmem 100M bash. This will limit both memory and swap usage. To limit just memory remove the line with memory.memsw.limit_in_bytes. #!/bin/sh set -eu if [ "$#" -lt 2 ] then echo Usage: ...



Top 50 recent answers are included