How to limit ram usage of a certain binary?

Posted by marc.riera on Server Fault See other posts from Server Fault or by marc.riera
Published on 2010-03-26T11:42:43Z Indexed on 2010/03/26 11:53 UTC
Read the original article Hit count: 414

Filed under:
|
|

Hello,

i have a binary, which indexes some stuff, it eats all my ram and my swap. Then the server hangs.

I would like to limit its ram usage.

I've looking at cpulimit and /etc/security/limits.conf but both of them focus on cpu limits and user/processes .

Have somebody limited the usage of a certain binary? How can I approach this issue?

Thanks

© Server Fault or respective owner

Related posts about cpu-usage

Related posts about ram