> Greetings,
> 
> I have a mod_perl handler (that is intended to run on a proxy server)
> written like so:
[sNip]
> *<Location />*
> *    SetHandler perl-script*
> *    PerlFixupHandler Handler*
> *</Location>*
> 
> Before I register this handler, my average response time serving a static
> document is about 20 milli seconds. When i register this handler as either a
> Trans or Fixup handler, my performance degrades to 2 whole seconds.
[sNip]
> Can anyone see the reason why my performance is being degraded
> significantly? Is this normal? Any suggestions or recommendations are
> greatly appreciated. Thank you in advance, and please let me know if you
> need any more details in case i left them out.

        Have you tried using the "modperl" handler instead of the "perl-
script" handler?  There is more overhead with the "perl-script" 
handler due to populating %ENV as per documentation:

                
http://perl.apache.org/docs/2.0/user/config/config.html#C_SetHandler_

        I normally use the "modperl" handler for all the stuff I do and I 
find the response time is slightly better than serving static HTML 
pages, but I'm also not doing anything with PerlFixupHandler.

Randolf Richardson - rand...@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.inter-corporate.com


Reply via email to