You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Ted <mp...@netcasters.com> on 2005/08/24 18:38:45 UTC
preloading modules in mp2
Hi,
Has anyone experienced a slowdown in the start and stop times of the server
when modules are preloaded? It takes more time to preload under mp2
than under mp1.
mp2, preloading no modules: start and stop times are on the order of a
second or less
mp2, preloading modules listed below: start time is about 10 seconds
and stop
time is about 5 seconds.
mp1, preloading no modules: start and stop times are on the order of a
second or less
mp1, preloading modules listed below: start time is about 5 seconds and
stop
time is about 1 second or less.
Modules preloaded for the test
-------------------------------
use Apache::DBI ();
use DBI ();
use Fcntl ();
use File::Copy ();
use HTML::Parser ();
use LWP::Simple ();
use MIME::Lite ();
use XML::Parser ();
use XML::Parser::EasyTree ();
use Encode ();
use Archive::Zip ();
use PDF::API2 ();
use Digest::SHA1 ();
Preloading more modules results in more of a difference between the two
environments in regard to the start/stop times. These tests were done on
a sun box running Solaris 9.
Is there anything that can be done to speed this up or is this just the
nature
of mp2?
Thanks for any information you may have,
Ted
Re: preloading modules in mp2
Posted by Ted <mp...@netcasters.com>.
Thank you for helping me out.
mod_apreq2
Philip M. Gollucci wrote:
> Ted wrote:
>
>> I am not using threads either.
>
> are you loading anything else like
> mod_apreq1/2
> mod_php
> ....
> etc
>
>
Re: preloading modules in mp2
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Ted wrote:
> I am not using threads either.
are you loading anything else like
mod_apreq1/2
mod_php
....
etc
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com
Re: preloading modules in mp2
Posted by Ted <mp...@netcasters.com>.
I am not using threads either.
Philip M. Gollucci wrote:
> Ted wrote:
>
>> Hi,
>>
>> Has anyone experienced a slowdown in the start and stop times of the
>> server
>> when modules are preloaded? It takes more time to preload under mp2
>> than under mp1.
>
> I tried this httpd 1.3.33/mp1 1.29 and httpd 2.3.0/mp2 svn head
> Both start in stop in ~ 2-3 seconds or less.
>
> Both used perl 5.8.7 WITHOUT THREADS. Are you using threads in mp2?
> Likely thats the cause.
>
>> Modules preloaded for the test
>> -------------------------------
>> use Apache::DBI ();
>> use DBI ();
>> use Fcntl ();
>> use File::Copy ();
>> use HTML::Parser ();
>> use LWP::Simple ();
>> use MIME::Lite ();
>> use XML::Parser ();
>> use XML::Parser::EasyTree ();
>> use Encode ();
>> use Archive::Zip ();
>> use PDF::API2 ();
>> use Digest::SHA1 ();
>
>
>
Re: preloading modules in mp2
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Ted wrote:
> Hi,
>
> Has anyone experienced a slowdown in the start and stop times of the server
> when modules are preloaded? It takes more time to preload under mp2
> than under mp1.
I tried this httpd 1.3.33/mp1 1.29 and httpd 2.3.0/mp2 svn head
Both start in stop in ~ 2-3 seconds or less.
Both used perl 5.8.7 WITHOUT THREADS. Are you using threads in mp2?
Likely thats the cause.
> Modules preloaded for the test
> -------------------------------
> use Apache::DBI ();
> use DBI ();
> use Fcntl ();
> use File::Copy ();
> use HTML::Parser ();
> use LWP::Simple ();
> use MIME::Lite ();
> use XML::Parser ();
> use XML::Parser::EasyTree ();
> use Encode ();
> use Archive::Zip ();
> use PDF::API2 ();
> use Digest::SHA1 ();
--
END
------------------------------------------------------------
What doesn't kill us can only make us stronger.
Nothing is impossible.
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
http://www.liquidityservicesinc.com
http://www.liquidation.com
http://www.uksurplus.com
http://www.govliquidation.com
http://www.gowholesale.com