If you put something like the folowing line in httpd.conf, all prcess started from within the apache will be limited in theire memory usage. In this exampel to 50MB. RLimitMEM 52428800 52428800 Sorry, dont know the exact Syntax of that Option... -----Ursprüngliche Nachricht----- Von: Mailing List [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 3. November 2000 10:56 An: Kasatenko Ivan Alex.; [EMAIL PROTECTED] Betreff: Re: resource limits Actually, I have a related question. We offering web hosting to our clients. When people run huge CGIs, normally we are notified, and kill them manually. We've also got a small script we run periodically to kill of any "stuck" or "hanged" processes by users' cgis (we use suexec so they run under their usernames). HOWEVER, as this is a reactive measure, rather than a PROactive measure, we'd rather have a way of LIMITING their usage like we do diskspace. By putting it in the /etc/init.d/apache script, it would limit the apache server as well (www-data) user, and thats bad. We ONLY want to limit the user's cgi processes. We haven't founded any script that suexec uses to run user cgis, so we can't limit it that way. Any ideas??? Thanks in advance. ----- Original Message ----- From: "Kasatenko Ivan Alex." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 03, 2000 4:56 PM Subject: Re: resource limits Hello Jeremy, Friday, November 03, 2000, 3:09:35 AM, you wrote: JCR> What is an easy way to find out how much of certain resources I am using? JCR> In particular, how can I easily find out the following in use by the shell JCR> and the processes started by it? JCR> - the total size of all process's data segments JCR> - total resident memory size JCR> - the number of file descriptors I have in use (open files) JCR> - the total stack size I have in use JCR> - total CPU time in seconds JCR> - total number of processes (per this session) JCR> - total amount of virtual memory used by the shell JCR> Does the "maximum resident set size" limit for all processes or just one JCR> process? If for all, then how can I easily find out? JCR> What does "pipe size" mean? How can I know how much I am using? JCR> How do sh/bash ulimits or csh limits correlate with JCR> /etc/security/limits.conf, /etc/limits, /etc/login.defs (ULIMIT) or JCR> BSD-type login.conf session resource limits settings? JCR> Does anyone have any answers to any of these questions? JCR> Thanks JCR> Jeremy C. Reed JCR> http://www.reedmedia.net/ JCR> http://bsd.reedmedia.net/ JCR> -- JCR> To UNSUBSCRIBE, email to [EMAIL PROTECTED] JCR> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Try the following kernel patch: http://www.asp-linux.com/ It helped me in such a situation. -- Regards, Ivan mailto:[EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]