SERVER:/etc # ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 96069
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 96069
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
SERVER:/etc #
Como posso definir o limite do usuário root de 1024 para outra coisa, PERMANENTEMENTE? Como posso definir o ulimit globalmente? As mudanças entrarão em vigor no momento?
ps: Eu já pesquisei no Google, mas não consigo encontrar o arquivo onde posso defini-lo permanentemente:
SERVER:/etc # grep -RiI ulimit * 2>/dev/null | egrep -v ":#|#ulimit"
init.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
init.d/multipathd: ulimit -n $MAX_OPEN_FDS
rc.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
rc.d/multipathd: ulimit -n $MAX_OPEN_FDS
e..:
SERVER:/etc # grep -RiI 'MAX_OPEN_FDS' * 2>/dev/null
init.d/boot.multipath:MAX_OPEN_FDS=4096
init.d/boot.multipath: if [ -n "$MAX_OPEN_FDS" ] ; then
init.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
init.d/multipathd:MAX_OPEN_FDS=4096
init.d/multipathd: if [ -n "$MAX_OPEN_FDS" ] ; then
init.d/multipathd: ulimit -n $MAX_OPEN_FDS
rc.d/boot.multipath:MAX_OPEN_FDS=4096
rc.d/boot.multipath: if [ -n "$MAX_OPEN_FDS" ] ; then
rc.d/boot.multipath: ulimit -n $MAX_OPEN_FDS
rc.d/multipathd:MAX_OPEN_FDS=4096
rc.d/multipathd: if [ -n "$MAX_OPEN_FDS" ] ; then
rc.d/multipathd: ulimit -n $MAX_OPEN_FDS
SERVER:/etc #