in reply to Debug a long-running CGI script?

You can also use Devel::DProf to find out in which subroutine the code needs so much time... e.g. write to the header something like

#! /usr/bin/perl -d:DProf

then run the script (needs write access to the current directory), and evaluate the trace with dprofpp -T or the like

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"

Replies are listed 'Best First'.
Re^2: Debug a long-running CGI script?
by Murcia (Monk) on Aug 20, 2004 at 10:58 UTC
    Thanks, I looked to to apache log file and found a problem with memory "out of memory" and problems with the CGI::Pretty module. I switch to "normal" CGI module and this worked! Thanks all!