Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
    
noproc not nproc Did you read the man page? –  user72856 Mar 2 '11 at 21:29

1 Answer 1

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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