CGI Program is Not Terminating After Exceeding OHS Timeout - High Memory Can Result
(Doc ID 2139217.1)
Last updated on OCTOBER 02, 2018
Applies to:Oracle HTTP Server - Version 184.108.40.206.0 to 220.127.116.11.0 [Release Oracle11g to 12c]
Information in this document applies to any platform.
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:
If CGI program finishes between Timeout and Timeout x 2, the program completes successfully.
-sleep(1st time):35 seconds
-sleep(2nd time):0 seconds
CGI program is not terminated after exceeding OHS Timeout. Request is terminated after double the Timeout period.
-sleep(1st time):65 seconds
-sleep(2nd time):0 second
If changing the Timeout value, it is seen that the results consistently show double.
Testing has used both mod_cgi and mod_cgid (configured at separate times) with the httpd.worker model configured in OHS 18.104.22.168.
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