【发布时间】:2013-12-23 07:54:24
【问题描述】:
我有一个 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=1NYTProf 选项。这是重现问题的最小 CGI 脚本:
#!/usr/bin/perl -d:NYTProf
sleep 1 while 1;
【问题讨论】:
标签: perl cgi http-status-code-504 devel-nytprof