>>>>>> Steve van der Burg <[EMAIL PROTECTED]> writes:
>
>>> I am trying to limit the execution of a mod_perl script by setting the
>>> limit of RLimitCPU. But
>>> this does not seem to work. I am using apache 1.3.12 , mod_perl. I
>>> tired using the module
>>> Apache::Resource but even that did not work.
>>>
>>> Does any body know why this is or am i missing something.
>>>
>
>SvdB> The RLimit stuff only affects processes forked from the httpd
>SvdB> children (ie. CGI processes). mod_perl code is part of the
>SvdB> webserver child, so the limits don't apply. You'll need to look
>
>No; you are wrong. They do apply to the httpd child process when
>using Apache::Resource.
>
>Here's how I set it up:
>
># limit CPU usage in seconds
>PerlSetEnv PERL_RLIMIT_CPU 90:600
># limit DATA segment in MB
>PerlSetEnv PERL_RLIMIT_DATA 32:64
>PerlChildInitHandler Apache::Resource
>
>Then in my startup.perl script I "use Apache::Resource".
>
>The CPU time is indeed enforced on the mod_perl code.
Thanks for the info, although I'd file this under "other methods", since it's not
using Apache's RLimitCPU directive. I'll definitely start doing this myself now. I'm
not sure how I missed it before!
...Steve
--
Steve van der Burg
Information Services
London Health Sciences Centre
(519) 685-8300 ext 35559
[EMAIL PROTECTED]