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

I want to set systemwide ulimit on ubuntu (all processes, all users).

How can I set it?

thanks

JP

share|improve this question
add comment

1 Answer 1

You can set these in /etc/security/limits.conf on Red Hat systems. I think it's the same on Ubuntu. It has examples by default, they're pretty straightforward. Post back if you have problems.

share|improve this answer
    
thanks. it looks pretty configurable. I had seen some tutorial where they set "ulimit -s 512" somewhere in rc.d, which limited the mysql and other processes' virtual memory. I forgot where exactly it was done. Is this method equivalent? If so, what is the equivalent setting in limits.conf? –  JP19 Dec 28 '10 at 17:21
    
Try man limits.conf to get details on which settings to use. They are also detailed in the header of limits.conf. –  BillThor Dec 28 '10 at 19:26
add comment

Your Answer

 
discard

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