Oracle Application Server 10g (10.1.2.0.0)
OS : Linux
Sorry for the absurd Subject but was not able to think of any relevant line.
I am getting a random Internal 500 server error, in the production environment.
We tried to replicate the same in the test environment but to no avail.
The error message is shown generally at the end of a webpage, and it dose not occur frequently but once in a while in any page and then it would vanish like it never happened and there are no entries for it in the application log files.
We have gone through the code on the pages the error was shown but their was nothing wrong there.
The major problem though are the details that are with the error message like the server info and other details.
<pre>HTTP/1.1 500 Internal Server Error Date:Tue,26 Jun 2012 02:33:47 GMT Server:Oracle-Application-Server-10g Last-Modified: Sat. 16 Jun 2012 11:29:47 GMT ETag: "1cb1e-49d-2fed6e2b" Accept-Ranges: bytes Content-Length:729 Connection:close Content-Type: text/html
Though the paramaters in the httpd.conf file are :
but still the server details are shown.
Though the 500 Internal error message is shown but it does not effects the functionality of the application, the application works fine.
And their are no entries in the application log file for this but the error.log file shows :
[Mon Aug 13 09:52:43 2012] [error] [client 18.104.22.168] [ecid: 1344851563:22.214.171.124:18075:0:1,0] MOD_OC4J_0015: recv() returns 0. There has no message available to be received and oc4j has gracefully (orderly) closed the connection.
[Mon Aug 13 09:52:43 2012] [error] [client 126.96.36.199] [ecid: 1344851563:188.8.131.52:18075:0:1,0] MOD_OC4J_0054: Failed to call network routine to receive an ajp13 message from oc4j.
[Mon Aug 13 09:52:43 2012] [error] [client 184.108.40.206] [ecid: 1344851563:220.127.116.11:18075:0:1,0] MOD_OC4J_0033: Failed to receive an ajp13 message from oc4j.
[Mon Aug 13 09:52:43 2012] [error] [client 18.104.22.168] [ecid: 1344851563:22.214.171.124:18075:0:1,0] MOD_OC4J_0121: Failed to service request with network worker: myapp2_15 and it is not recoverable.
[Mon Aug 13 09:52:43 2012] [error] [client 126.96.36.199] [ecid: 1344851563:188.8.131.52:18075:0:1,0] MOD_OC4J_0013: Failed to call destination: myapp2's service() to service the request.
Any help in this regards would be greatly appreciated.
Thanks and cheers.
Have you tried to disable the KeepAlive timeout by restarting the HTTP Server component after making the following configuration changes to httpd.conf ?
1. Locate the KeepAlive directive in httpd.conf
2. Replace the KeepAlive directive in httpd.conf with
# KeepAlive On
3. If you are making this change manually, please run following command to propagate these changes into the central configuration repository.
Unix: $ORACLE_HOME/dcm/bin/dcmctl updateConfig -co ohs -v -d
Windows: %ORACLE_HOME%\dcm\bin\dcmctl updateConfig -co ohs -v -d
- This step is not needed if the changes are made via EM console.
Hope this can help you.
thanks for the reply.
Please can you specify what is the benefit that you think disabling 'KeepAlive' will provide(I only know that it would decrease the memory(RAM) usage), or is their any other reason that might be linked to the error?? I am asking this because I have to do the changes in the production itself(as the error is not being replicated in the testing or development env.) .
You could check the documentation :