Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have been using setrlimit with the R programming language for several versions of Ubuntu. However after upgrading to 13.10, very strange things started happening.

First I started noticing that Apache2 was hitting RLIMIT_NPROC which was set to 50, even though Apache actually only seemed to have a couple of processes. See more detail in this thread. I assumed it was a problem related to the upgrade of Apache 2.2 to Apache 2.4.

However now I am also experiencing strange things with RLIMIT_AS. In my application I set RLIMIT_AS to 1e9 (1GB) for each process, which should be more than enough. However I am randomly getting out of memory errors.

Has something changed between kernel 3.8 and 3.11 in the way setrlimit works?

share|improve this question
up vote 0 down vote accepted

There where changes to apparmor that could affect rlimit enforcement in the Ubuntu 3.11 kernel in saucy. Note these changes currently only apply to the Ubuntu Saucy kernel and not to the upstream kernels as saucy is using apparmor patches that have not entered the upstream kernel yet.

If rlimits are not working correctly please file a bug.

share|improve this answer

Your Answer


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.