我有一个 Perl CGI 应用程序有时会超时,导致它被 Apache 杀死,并将504 Gateway Time-out
错误发送到浏览器。我正在尝试使用 NYTProf 分析此应用程序,但是我无法读取配置文件数据:
$ 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;