実行中のプロセスのシェル制限を確認する

/proc//limits ってのを見つけた

[yoheia@www****** ~]$ echo $$
7292
[yoheia@www****** ~]$ cat /proc/7292/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             1024                 7818                 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       7818                 7818                 signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0                    
Max realtime priority     0                    0                    
Max realtime timeout      unlimited            unlimited            us        

環境は以下の通り

[yoheia@www****** ~]$ cat /etc/issue
CentOS release 6.4 (Final)
Kernel \r on an \m

[yoheia@www****** ~]$ uname -r
2.6.32-358.18.1.el6.x86_64

man には

[yoheia@www****** ~]$ man proc
...
       /proc/[pid]/limits (since kernel 2.6.24)
              This file displays the soft limit, hard limit, and units of measurement for each of the process's resource  lim-
              its (see getrlimit(2)).  The file is protected to only allow reading by the real UID of the process.

って書いてった。