I tried ulimit -u 2000
and ulimit -Su 2000
to modify the 'Max processes', and started up my program, but failed. I found file '/proc/pid/limit' is still:
Max processes 1024 2000 processes
How could I change the soft limit?
Best Answer
What does
ulimit -a
show?You're likely at the global max limit or are encountering a permissions issue. I tried your experiment and it worked just fine for me.
Example
The output of a
/proc/pid/limits
looks like the following:Setting the soft limit to 2000:
What else?
I'd take a look at your
/etc/security/limits.conf
file and see if there is a limit coming from that file that's keeping regular users from changing this limitI'd also look in the directory,
/etc/security/limit.d/
. There are additional files often times there which include more limits. For example on my Fedora system I have this file:References