Hi Stas,

Thank you for responding.  I attended your  "Getting Started with Mod_Perl"
class in Monterey, Aug 22, 1999, time flies doesn't it?

Anyway you said 
"You must load mod_perl before you use any mod_perl config, and you config:

 > Include /users/webuser/conf/heavy_script_aliases2.0.conf
 >
 > LoadModule perl_module modules/mod_perl.so"

so I made the switch and that did the trick.

400% speed up going from 2 RPS to 8 RPS!

./ab -n 32 -c 4 http://web2.nrlmry.navy.mil:7777/nexsat-bin/nexsat.cgi
Requests per second:    1.87 [#/sec] (mean)

To
./ab -n 32 -c 4 http://web2.nrlmry.navy.mil:8888/nexsat-bin/nexsat.cgi
Requests per second:    7.80 [#/sec] (mean)


Thank you very much,

John Kent
Webmaster
Naval Research Laboratory
Monterey, CA


-----Original Message-----
From: Stas Bekman [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 12:21 PM
To: Kent, Mr. John (Contractor)
Cc: Mod-Perl (E-mail)
Subject: Re: No Speed-Up?


Kent, Mr. John (Contractor) wrote:
> Greetings ModPerl Gurus,
> 
> Not seeing any significant speed up in my cgi scripts using mod-perl (3.5 RPS) over 
> straight
> Apache (3.2 RPS), unlike in the past.
> 
> So figure I must have something configured incorrectly.  Hopefully someone can tell
> me what I have wrong.
> 
> Successfully built:
> 
> [Fri Jul 09 09:25:06 2004] [notice] Apache/2.0.50 (Unix) mod_perl/1.99_14 
> Perl/v5.8.3 configured -- resuming normal operations
> 
> All tests passed.
> 
> --------------------------------------------------------------------------------------------------------------------------------------
> My httpd.conf:
> 
> Listen 8888
> ServerRoot /users/webuser/apache_heavy
> 
> User  webuser
> Group webgroup
> 
> <IfModule prefork.c>
> StartServers         2
> MinSpareServers      2
> MaxSpareServers      4
> MaxClients          10
> MaxRequestsPerChild  0
> </IfModule>
> 
> # Assume no memory leaks at all
> MaxRequestsPerChild 0
> 
> # it's always nice to know the server has started
> ErrorLog logs/error_log
> 
> # Some benchmarks require logging, which is a good requirement.  Uncomment
> # this if you need logging.
> #TransferLog logs/access_log
> 
> # If this was a real internet server you'd probably want to uncomment this:
> <Directory "/">
>     order allow,deny
>     allow from all
> </Directory>
> 
> Include /users/webuser/conf/page_aliases2.0.conf
> Include /users/webuser/conf/heavy_script_aliases2.0.conf
> 
> LoadModule perl_module modules/mod_perl.so
> 
> PerlRequire /users/webuser/conf/startup2.0.pl
> 
> ---------------------------------------------------------------------------------------------------------------------------------------
> heavy_script_aliases2.0.conf  contains:
> 
> ScriptAlias /tc-bin       "/users/webuser/scripts/tc-bin/"
> <Directory "/users/webuser/scripts/tc-bin/">
>       SetHandler perl-script
>       PerlResponseHandler ModPerl::Registry
>       PerlOptions +ParseHeaders
>       Options +ExecCGI +FollowSymlinks
>     ExpiresActive On
>     ExpiresDefault "access plus 10 minutes"
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
> ----------------------------------------------------------------------------------------------------------------------------------------

Hmm, are you sure you are running the right server with the right 
configuration? The quoted config can't possibly work. Apache won't even 
start, so you must be running something else.

You must load mod_perl before you use any mod_perl config, and you config:

 > Include /users/webuser/conf/heavy_script_aliases2.0.conf
 >
 > LoadModule perl_module modules/mod_perl.so

has it the other way around, which leads me to think that you aren't 
testing the right config file at all.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to