The First Cry of Atom Today is the first day of the rest of my life.

Check ulimit by process

ulimit is a utility tool to set a limitation of user process. For example, you can set the maximum core file size by using ulimit -c command.

# It sets the max number of blocks used for core file.
$ ulimit -c 100000

But ulimit does not show the information of other process. You can check the resource limitation of arbitrary process by using /proc file system.

$ cat /proc/$PID/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 core file size        0                    unlimited            bytes