squid故障汇总
来源:岁月联盟
时间:2012-02-15
以下为个人总结
一:报错信 息:
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参数,去掉即可。