3
How can I set a RAM limit for a specific user? I have tried editing the /etc/security/limits.conf
file, and the RAM limits there, but I still see a users process exceeding the limit set.
I know that the limits are specified in kb, so I'm not using an incorrect number.
For instance, I am trying to set it so that a user can't use more than 2,048mb (or 2,097,152kb) of memory, and their program will use like 2500mb.
Is there any way that I can accomplish this without virtual machines? I am also trying to stay away from running virtual machines as an option.
Here's my /etc/sysconfig/limits.conf
.
Also, the RSS limit is ignored since the kernel version I'm running is 2.6.18
Q: Is there any way that I can accomplish this without virtual machines? A: I don't think so :) – paulsm4 – 2012-02-26T04:52:27.037
can you post your /etc/security/limits.conf file? – jdizzle – 2012-02-26T05:04:23.007
I edited it with a pastebin link to the file. – None – 2012-02-26T05:09:53.903