squid故障匯總

來源:互聯網
上載者:User

前文:http://www.bkjia.com/os/201202/119673.html

 
以下為個人總結
 
一:報錯信 息:
FATAL:  Failed to verify one of the swap directories, Check cache.log
       for details.  Run 'squid -z' to create swap directories
       if needed, or if running Squid for the first time.
Squid Cache (Version 2.6.STABLE18): Terminated abnormally.
未執行squid -z命令需要執行該命令初始化cache目錄,假如想觀察這個過程squid -zX
 
 
Creating Swap Directories
FATAL: Failed to make swap directory /usr/local/squid/var/cache/00:
   (13) Permission denied
確認/usr/local/squid/var/cache目錄的所有組成都可被squid.conf給定的 使用者ID訪問
 
 
 
二:
 
WARNING:squidaio_queue_request: WARNING - Queue congestion
 
IO的隊列滿了, ,重諞一下原始碼,加大IO的 隊列或換一種IO方式。
 
編譯時間:--enable-async-io=40 (我的是40,少了)
 
 
 
三:
 
helperOpenServers: Starting 5 'dnsserver' processes
ipcCreate: fork: (12) Cannot allocate memory
WARNING: Cannot run '/opt/squid/libexec/dnsserver' process.
 
系統記憶體被耗光,沒有記憶體配置給squid的dns進程
 
 
 
四:
 
FATAL: xcalloc: Unable to allocate 1 blocks of 4108 bytes!
 
Squid 開啟大記憶體導致進程記憶體溢出
 
 
 
五:
 
cache.log
2009/08/27 20:49:55| HTCP Disabled.
2009/08/27 20:49:55| sendto FD 17: (1) Operation not permitted
2009/08/27 20:49:55| ipcCreate: CHILD: hello write test failed
????
cu的朋友總結是configure時編譯了--enable-icmp參數,去掉即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.