Re: mod_perl2 installed, but scripts still slow

2006-08-22 Thread Jonathan Vanasco
look up Apache::DBI and Apache::DBI::connect_on_init that should speed up your system quite a bit - as you're connecting to the DB on every request you can also pre-cache your Petal templates on startup- if you're using the 2.19 patch, just pass in the 'cache_only' flag, and it will comp

Re: mod_perl2 installed, but scripts still slow

2006-08-22 Thread Dietmar Thal
Hi again, So i've set up a simple test case with the following code: (basically what happens all the time in my site) ## #!/usr/bin/perl -Tw use strict; use DBI; use Petal; use Time::HiRes; my $ts = [Time::HiRes::gettimeofday]; my $dbh

Re: mod_perl2 installed, but scripts still slow

2006-08-20 Thread Fred Moyer
Dietmar Thal wrote: > Hey, > > I have recently upgraded from mod perl 1.999 to 2.0.2 > on Apache 2.0.54 (Debian). > Some more hints: > After installing, when i tried to restart Apache, > error.log said, it cant find Apache2.pm in @INC, > so i removed the line 'PerlModule Apache2' from my conf. > O

Re: mod_perl2 installed, but scripts still slow

2006-08-20 Thread Fred Moyer
Dietmar Thal wrote: > Hey, > > I have recently upgraded from mod perl 1.999 to 2.0.2 > on Apache 2.0.54 (Debian). > Some more hints: > After installing, when i tried to restart Apache, > error.log said, it cant find Apache2.pm in @INC, > so i removed the line 'PerlModule Apache2' from my conf. > O

mod_perl2 installed, but scripts still slow

2006-08-19 Thread Dietmar Thal
Hey, I have recently upgraded from mod perl 1.999 to 2.0.2 on Apache 2.0.54 (Debian). I recognized that my scripts are being executed very slow, especially the first request (after server restart) needs about 4 seconds until a response begins. I'm using Petal-templating and stuff, which was very