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

How can I set it?

thanks

JP

link|improve this question
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown