Ich habe eine Perl-CGI-Anwendung, die manchmal Zeitüberschreitung, wodurch es von Apache und 504 Gateway Time-out
Fehler an den Browser gesendet getötet werden verursacht. Ich versuche, diese Anwendung zu profilieren NYTProf verwenden, aber ich kann nicht Profildaten lesen:Profiling ein Perl-CGI-Skript, das Zeitlimit
$ nytprofhtml -f www/cgi-local/nytprof.out
Reading www/cgi-local/nytprof.out
Profile data incomplete, inflate error -5 ((null)) at end of input file, perhaps the process didn't exit cleanly or the file has been truncated (refer to TROUBLESHOOTING in the documentation)
Ich verwende sigexit=1
NYTProf Option. Hier ist minimal CGI-Skript, das Problem reproduziert:
#!/usr/bin/perl -d:NYTProf
sleep 1 while 1;