[root@lab8106 ~]# prlimit --pid 28176 RESOURCE DESCRIPTION SOFT HARD UNITS AS address space limit unlimited unlimited bytes CORE max core file size 0 unlimited blocks CPU CPU time unlimited unlimited seconds DATA max data size unlimited unlimited bytes FSIZE max file size unlimited unlimited blocks LOCKS max number of file locks held unlimited unlimited MEMLOCK max locked-in-memory address space 65536 65536 bytes MSGQUEUE max bytes in POSIX mqueues 819200 819200 bytes NICE max nice prio allowed to raise 0 0 NOFILE max number of open files 1048576 1048576 NPROC max number of processes 1048576 1048576 RSS max resident set size unlimited unlimited pages RTPRIO max real-time priority 0 0 RTTIME timeoutfor real-time tasks unlimited unlimited microsecs SIGPENDING max number of pending signals 192853 192853 STACK max stack size 8388608 unlimited bytes
修改指定运行进程的限制
1 2 3
[root@lab8106 ~]# prlimit --pid 28176 --nofile=104857 [root@lab8106 ~]# prlimit --pid 28176 |grep NOFILE NOFILE max number of open files 104857 104857