develooper Front page | perl.beginners | Postings from November 2019

Re: Apache2 to perl slow start

Thread Previous
From:
Andy Bach
Date:
November 13, 2019 18:59
Subject:
Re: Apache2 to perl slow start
Message ID:
CACV6rWK1R1+8jLkjdrCpP1_bRHn32vorj40_Q6Oyn2H5mhwa4g@mail.gmail.com
> Script is working when I start it from console, also is work
from web too when I access it direct http://127.0.0.1/test.pl?run=true

> I see in apache logs access file, apache immediately receive request to
start test.pl but it's took around 3 - 4 seconds until script start working.

> My question is: Do some body can tell me did I can avoid that delay ?

Might help to see the script. Is there anything in the apache error log? Is
it using mod perl? Any other interesting modules? Does it do any http
requests or such itself?  Any external programs? Do any logging or file
opening? Does it do some html output (header etc), do some work (database)
and then finish printing the html page?   You can add a bunch of
warn("starting " . localtime() . "\n");

for each step and see what the error log shows.

On Wed, Nov 13, 2019 at 12:06 AM Condor <condor@bulsat.com> wrote:

>
> Hello,
>
> sry for my question. I have a problem loading perl cgi-bin script in
> apache2. Script is working when I start it from console, also is work
> from web too when I access it direct http://127.0.0.1/test.pl?run=true
>
> I see in apache logs access file, apache immediately receive request to
> start test.pl but it's took around 3 - 4 seconds until script start
> working.
>
> My question is: Do some body can tell me did I can avoid that delay ?
>
> I was using Devel::NYTProf trying to understand where thinks is slow
> down but no effect. Script started from console work like a charm
>
> Good day,
>
> HS
>
> --
>
> Regards,
> Condor
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

-- 

a

Andy Bach,
afbach@gmail.com
608 658-1890 cell
608 261-5738 wk

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About