EBS Webservice Timeout,HTTP Server Return "500 Internal Server Error"

來源:互聯網
上載者:User

標籤:blog   http   os   io   strong   ar   for   檔案   資料   

http://blog.itpub.net/26687597/viewspace-1207571/基於Oracle EBS R12,開發了一個Webservice用於返回某項主要資料,當請求的資料量非常大的時候(大於6000行的資料量),Oracle應用伺服器總是給返回一個500 Internal Server Error。請求資料量小的時候,Webservice運行沒有問題,能夠正常返回請求資料。用戶端接到的報錯: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
[email protected] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
</BODY></HTML>  解決方案這種問題多是因為資料量太大,應用伺服器處理逾時,嘗試調大Apache的Timeout,就可以解決問題。 注意:Oracle EBS的Apache配置參數在$INST_TOP/ora/10.1.3/Apache/Apache/conf下的httpd.conf(並不是通常意義的Apache配置目錄:$ORACLE_HOME/Apache/Apache/conf/httpd.conf) 修改Apache設定檔httpd.conf,適當提高Timeout參數(Timeout預設為300秒)## Timeout: The number of seconds before receives and sends time out.
#
Timeout 300 修改完參數後,需要重啟Oracle EBS HTTP Server或者OC4J Service才會生效。Restart opmn
$ADMIN_SCRIPTS_HOME/adopmnctl.sh stopall
$ADMIN_SCRIPTS_HOME/adopmnctl.sh startallorRestart OC4J service$ADMIN_SCRIPTS_HOME/adoacorectl.sh stop$ADMIN_SCRIPTS_HOME/adoacorectl.sh start 另外,Timeout參數到底需要修改到多少,需要一些測試才能找到邊界,Timeout配置處於安全考慮也不要修改的太高,防止DoS Attachs.The TimeOut directive should be lowered on sites that are subject to DoS attacks. Setting this to as low as a few seconds may be appropriate. As TimeOut is currently used for several different operations, setting it to a low value introduces problems with long running CGI scripts.(Refer:Link) 參考500 Internal Server Error Causes Performance Issues (文檔 ID 1389111.1)Avoiding Worksheet Timeout in Oracle Demand Planning (文檔 ID 779590.1)TimeOut Errors - How To Extend TimeOut For Long Updates In APC/PIM/PLM Pages? (文檔 ID 1165573.1)Increase Timeout Setting for Apachehttp://docs.oracle.com/cd/E18727_01/doc.121/e12893/T174296T174298.htmhttp://docs.oracle.com/cd/E10415_01/doc/bi.1013/e10404/bi_pub_rns.htmhttps://forums.oracle.com/message/10186007  

EBS Webservice Timeout,HTTP Server Return "500 Internal Server Error"

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.