最近在用 Zend 的 FirePHP 來 Profile DB 的時候,常常都會出現上圖這個問題。

想來想去應該就是 Response Header 的資料量太大,才會這樣吧。

因為 FirePHP 會將資料塞在 Response Header 裡,正常狀況如下圖。

然後在Console 畫面就可以看到執行的SQL 語法。

可參考 : 【程式】ZF : DB Profiling with Firebug

 

現在就來說說怎麼解決這個問題吧:

ERROR

The requested URL could not be retrieved


While trying to retrieve the URL: http://xxx.com

The following error was encountered:

  • The request or reply is too large.

    If you are making a POST or PUT request, then your request body (the thing you are trying to upload) is too large. If you are making a GET request, then the reply body (what you are trying to download) is too large. These limits have been established by the Internet Service Provider who operates this cache. Please contact them directly if you feel this is an error.

Your cache administrator is webmaster.


Generated Fri, 18 Jun 2010 08:15:06 GMT by xxx.com (squid/2.7.STABLE7)

 

上面這個訊息是Squid 吐的,因此原因就出現在 Squid,

所以只要在 squid.conf 裡面加上

reply_header_max_size 10 MB

然後重新動啟 squid。

就搞定了。

相關設定小整理:
request_body_max_size
request_header_max_size
reply_body_max_size
reply_header_max_size

 

 

 

 

 

創作者介紹
創作者 Ching-Wei 的頭像
Ching-Wei

Ching Wei : This is My Life - 工作、攝影、旅遊

Ching-Wei 發表在 痞客邦 留言(0) 人氣()