Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI script terminating prematurely 1

Status
Not open for further replies.

scbrow

MIS
Nov 13, 2004
8
US
I have a cgi script (.exe) that runs successfully 90% of the time - but it occasionally terminates prior to completion. When this happens I get "Page cannot be displayed" error. No errors appear in the log when this happens.

I am currently using apache. The site was previously hosted on Windows 2000 and the error never occurred - so I assume this is a server configuration problem.

This is a tough problem to debug - so any thoughts would be appreciated.

thanks.
site: NutrientFacts.com
 
Sounds to me al ike a memory leak in the cgi or something.

Does the access_log record a connection? What status does it return?

 
An access log record was logged. The status was 200.

Following the error, I did a refresh and the page displayed correctly. The access log records were identical for both server requests - except the refresh also had a log value for images on the page.

Sometimes when the error happens, I briefly see a partial display of the page - as if the script terminated prior to completing. As stated, this never happened on the other server.

Thanks.
 
If you set your MaxRequestsPerChild to '0' does the problem go away?

 
Thanks for the recommendation. I made the change but unfortunately the problem still happens.
 
I tried setting RLimitCPU, RLimitMEM, and RLimitNPROC to large numbers but still no luck. Thanks for the suggestion.
 
For anyone who is interested - I installed xp pro on the server and the problem went away. I was using xp home.
 
Many thanks for sharing the resolution to the problem.
Usually people find a fix, and never update the status of the question.
Kudos
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top