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

Wed Jul 23 18:36:11 UTC 2008
Ed Donahue <liberaled at gmail.com>

Is there a way I can prevent processes from taking up all the ram then swap
until the box crashes/freezes?

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

I am able to kill the sucker now, but I'd like to not have to worry about
that.

sar -r
01:00:01 PM kbmemfree kbmemused  %memused kbbuffers  kbcached kbswpfree
kbswpused  %swpused  kbswpcad
01:10:01 PM      5812       949580           99.39       5560
67688    189912    1841696        90.65        33300
01:20:01 PM      4736       950656           99.50       4832
119364         0         2031608      100.00        46104
01:30:02 PM      8788       946604           99.08       1004
32360         4         2031604       100.00       10672

01:52:50 PM       LINUX RESTART
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080723/fc52896f/attachment-0004.html>