[CentOS] prevent runaway PID taking down server (RAM/swap)

William L. Maltby CentOS4Bill at triad.rr.com
Wed Jul 23 19:13:36 UTC 2008

On Wed, 2008-07-23 at 14:36 -0400, Ed Donahue wrote:
> Is there a way I can prevent processes from taking up all the ram then
> swap until the box crashes/freezes?

If the process is started from bash, whther by hand or script, I would
think that bash's "ulimit" builtin would give what you need? "man
bash", /ulimit

To prevent a process from running wild, it would have to be non-root
user I guess.

> I'm using IEs4Linux and the wineserver seems to start taking up RAM
> until my box dies, it happens slowly.
> <snip>


More information about the CentOS mailing list