I am trying to use /etc/security/limit.conf on Linux (Debian) to limit the number of processes per user.

for starters, I tried to limit my own user processes by adding this to /etc/security/limit.conf:

omry hard nproc 100

this locked my user out of ssh. I could open new processes (verified with su omry), but could not log into ssh with that user : sshd reported this in it's log:

fatal: setreuid 1000: Resource temporarily unavailable

also, I am certain my user is not running anything near 100 processes (actually 6). what can be the reason for this?

link|improve this question

67% accept rate
noproc not nproc Did you read the man page? – user72856 Mar 2 '11 at 21:29
feedback

1 Answer

up vote 1 down vote accepted

I now know that Java threads also count as processes. It's likely that I had a Java server that used that many threads.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.