[Level 2] How to check the resource limitation of specific process in Ubuntu.

How to check the resource limitation of specific process in Ubuntu.
You can follow the below steps:
# ps -ef | grep nfsd4
root      1098     2  0 May13 ?        00:00:00 [nfsd4]
root     18674 18607  0 20:32 pts/15   00:00:00 grep --color=auto nfsd4
# cat /proc/1098/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            10485760             unlimited            bytes     
Max core file size        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             47490                47490                processes 
Max open files            1024                 1024                 files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       47490                47490                signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0                    
Max realtime priority     0                    0                    
Max realtime timeout      unlimited            unlimited            us        
# 
Wish this helps.
 regards,
Stanley Huang

Comments

Popular posts from this blog

[Level 2] Shell Interactive With Zenity Episode 5 -- list

[Level 2] iif in Python