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;