>>>>> "SM" == Simon Miner <[EMAIL PROTECTED]> writes:

SM> Hi:
SM> I'm having difficulty getting Apache::Resource to work.  I've tried
SM> calling the module as a PerlChildInitHandler and as a PerlFixupHandler,
SM> and I've tried telling it which resource to limit in the following ways.

Working example:

# protect from runaway child processes.
# Apache::Resource loaded in startup.perl below.
#
# limit CPU usage in seconds
PerlSetEnv PERL_RLIMIT_CPU 60:600
# limit DATA segment in MB
PerlSetEnv PERL_RLIMIT_DATA 32:64
PerlChildInitHandler Apache::Resource

# startup.perl loads all functions that we want to use within mod_perl
# this script is run while we are still "root".
PerlScript /home/khera/proj/newprizes/website/conf/startup.perl

And my startup.perl has "use Apache::Resource".

If you configure Apache::Status, it will let you review the resources
set this way.

Now, the only question I might have is: "does Solaris 2.7 support BSD
style resource limits"?  I don't know.  That may be the problem.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: [EMAIL PROTECTED]       Rockville, MD       +1-301-545-6996
PGP & MIME spoken here            http://www.kciLink.com/home/khera/

Reply via email to