我有一個Perl CGI應用程序有時會超時,導致它被Apache和504 Gateway Time-out
錯誤發送給瀏覽器。我試圖用型材本NYTProf應用,但是我無法讀取配置文件數據:分析超時的Perl CGI腳本
$ 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)
我使用sigexit=1
NYTProf選項。下面是再現問題最少的CGI腳本:
#!/usr/bin/perl -d:NYTProf
sleep 1 while 1;