Phoenix.pm: mod_perl

Lowell Hamilton syz at broken-bit.com
Wed Mar 27 16:20:50 CST 2002


> Actually, the book has an eagle on it.  _Writing Apache Modules in Perl
> and C_ by Lincoln Stein and Doug MacEachern (aka the mod_perl book, aka
> the Eagle book).  There's now also a mod_perl Cookbook
> (http://www.modperlcookbook.org), though it's not published by O'Reilly
> is the official site, though you'd probably specifically want the Quick
> Guide for moving from CGI to mod_perl:
I hadn't seen the modperl cookbook .. thanks a bunch.
 
> http://perl.apache.org/dist/cgi_to_mod_perl.html
Yeah but that's just basic stuff

> I would also like to issue a STERN WARNING:
<snip>

Nah I'm not aiming for just a "change two lines and go" approach .. I
aiming for moving a large portion of the code out to apache modules. 
I've just heard so many horror stories from people about it and am
looking for resources for _good_ mod_perl code design (there isn't much
to find outside of CPAN and apache) from the standpoint of taking an
existing app and optimizing speed.  

50% of it is pretty clean homebrew CGI::Application-ish style code
currently running under Apache::PerlRun with Apache::DBI connection
pooling on a dedicated application-only mod_perl box proxied through the
static servers on the outside .. but at peaks when receiving over 50
script hits a second, the app server starts getting behind due to
compilation waiting, even using the built-in intrepeter of PerlRun.  I'm
benchmarked the scripts down as small as they will go but still about
25% of total execution time is compilation.  

-- 
: Lowell Hamilton     syz at b r o k e n - b i t . c o m :
: Linux  OpenBSD  IDS/firewall  Security  QMail  Perl :




More information about the Phoenix-pm mailing list