私は時々タイムアウトしてApacheに殺され、ブラウザに504 Gateway Time-out
エラーが送信される原因となるPerl CGIアプリケーションを持っています。私は、しかし、私は、プロファイルデータを読み取ることができない、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;