CGI Program is Not Terminating After Exceeding OHS Timeout - High Memory Can Result
(Doc ID 2139217.1)
Last updated on JANUARY 12, 2023
Applies to:
Oracle HTTP Server - Version 11.1.1.6.0 to 12.2.1.3.0 [Release Oracle11g to 12c]Information in this document applies to any platform.
Symptoms
When a request exceeds Oracle HTTP Server (OHS) httpd.conf "Timeout" value, the expectation is that the request will then be be terminated.
It is seen that a long running CGI program is not terminating after the OHS Timeout has exceeded. The long running CGI program is terminated after running for double the Timeout value.
Following two cases using "Timeout 30" as an example:
Case1
If CGI program finishes between Timeout and Timeout x 2, the program completes successfully.
Testcase:
-sleep(1st time):35 seconds
-sleep(2nd time):0 seconds
Case2
CGI program is not terminated after exceeding OHS Timeout. Request is terminated after double the Timeout period.
Testcase:
-sleep(1st time):65 seconds
-sleep(2nd time):0 second
If changing the Timeout value, it is seen that the results consistently show double.
Changes
Testing has used both mod_cgi and mod_cgid (configured at separate times) with the httpd.worker model configured in OHS 11.1.1.6.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |