> 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 <con...@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-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>

-- 

a

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

Reply via email to