Skip to main content
 首页 » 操作系统

Linux 进程限制_limit

2022年07月19日54leader

1. /proc/<PID>/limits

/proc/<PID> # cat limits 
Limit                     Soft Limit           Hard Limit           Units 
Max cpu time              unlimited            unlimited            seconds 
Max file size             unlimited            unlimited            bytes 
Max data size             unlimited            unlimited            bytes 
Max stack size            8388608              unlimited            bytes 
Max core file size        0                    unlimited            bytes 
Max resident set          unlimited            unlimited            bytes 
Max processes             44376                44376                processes 
Max open files            1024                 4096                 files 
Max locked memory         65536                65536                bytes 
Max address space         unlimited            unlimited            bytes 
Max file locks            unlimited            unlimited            locks 
Max pending signals       44376                44376                signals 
Max msgqueue size         819200               819200               bytes 
Max nice priority         0                    0 
Max realtime priority     0                    0 
Max realtime timeout      unlimited            unlimited            us

本文参考链接:https://www.cnblogs.com/hellokitty2/p/14596151.html