This discussion is archived
3 Replies Latest reply: Sep 3, 2012 12:49 PM by steff2 RSS

Facing weird problem with my application...

955477 Newbie
Currently Being Moderated
Oracle Application Server 10g (10.1.2.0.0)
OS : Linux

Hi,

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
</pre>

Though the paramaters in the httpd.conf file are :

<pre>ServerSignature Off
ServerTokens Prod</pre>

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 :

<pre>
[Mon Aug 13 09:52:43 2012] [error] [client 130.29.137.130] [ecid: 1344851563:130.29.154.118: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 130.29.137.130] [ecid: 1344851563:130.29.154.118: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 130.29.137.130] [ecid: 1344851563:130.29.154.118:18075:0:1,0] MOD_OC4J_0033: Failed to receive an ajp13 message from oc4j.
[Mon Aug 13 09:52:43 2012] [error] [client 130.29.137.130] [ecid: 1344851563:130.29.154.118: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 130.29.137.130] [ecid: 1344851563:130.29.154.118:18075:0:1,0] MOD_OC4J_0013: Failed to call destination: myapp2's service() to service the request.
</pre>

Any help in this regards would be greatly appreciated.

Thanks and cheers.
  • 1. Re: Facing weird problem with my application...
    steff2 Explorer
    Currently Being Moderated
    Hello,

    Have you tried to disable the KeepAlive timeout by restarting the HTTP Server component after making the following configuration changes to httpd.conf ?

    Unix: $ORACLE_HOME/Apache/Apache/conf/httpd.conf
    Windows: %ORACLE_HOME%\Apache\Apache\conf\httpd.conf


    1. Locate the KeepAlive directive in httpd.conf

    KeepAlive On

    2. Replace the KeepAlive directive in httpd.conf with

    # KeepAlive On
    KeepAlive Off

    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.
    Best Regards,
    Steff
  • 2. Re: Facing weird problem with my application...
    955477 Newbie
    Currently Being Moderated
    Hi steff2,

    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.) .

    Thanks
  • 3. Re: Facing weird problem with my application...
    steff2 Explorer
    Currently Being Moderated
    Hello,

    You could check the documentation :

    [http://docs.oracle.com/cd/B14099_19/web.1012/b14011/diagnosis.htm#BCFJGCBG|http://docs.oracle.com/cd/B14099_19/web.1012/b14011/diagnosis.htm#BCFJGCBG]

    Regards,
    Steff

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points