Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

How can I set it?



share|improve this question

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.

In /etc/security/limits.conf add:

root - core unlimited
*    - core unlimited

You will need to log out and log back in before the limits are applied to your session.

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

Your Answer


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