[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cron job?




> Is there a solution to this "runaway" app problem that you know of?
> 

Set memory limits. 

Perhaps we could make this happen automatically. What we'd need to do is
probe the amount of available memory and edit limits.conf appropriately.
For example, running (something like) this after install:

MEM=`grep '^MemTotal' /proc/meminfo | awk '{print $2}'`

echo "*		soft	as	$MEM" >> /etc/security/limits.conf

To do it manually, you just edit /etc/security/limits.conf 
and add

*	soft	as	$MEM

also look at rss, and nproc


cheers,
-- 
Donovan