Re: Tuning response time from Apache server (using mod_perl handler)

"Randolf Richardson" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Inter-Corporate Computer & Network Services
Message-ID <[email protected]>
> 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 - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.inter-corporate.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.