I noticed a problem with web pages getting 'cut off' with a Perl/CGI based proprietary application I administer on a server running Apache 2.2. This lead me to investigate the problem further by writing a little Perl script myself I was able to recreate the same problem. There is no particular place that the output gets cut off. I have considered the possibility of time outs but I cannot find any time out related errors in the web server logs. The limits set for CGI appear to be fine too.

What measures can I take to identify the cause (and fix) this problem?