今天发现服务器流量突然降下来了,查看服务器发现squid建立了大量连接。查看squid的cache日志,发现以下信息
[quote]2011/10/19 09:34:13| client_side.cc(2980) okToAccept: WARNING! Your cache is running out of filedescriptors[/quote]
解决方法:
squid各个版本有差异,squid/3.1.3 不支持配置文件中添加配置项:max_filedesc或max_filedescriptors,需要在编译时添加参数。
squid 3.1.3:
[quote] --with-filedescriptors=NUMBER
Force squid to support NUMBER filedescriptors[/quote]
查看Squid相关状态
[quote]
# /byread/bin/squid/bin/squidclient -h 192.168.3.147 mgr:info|grep file
Maximum number of file descriptors: 1024
Largest file desc currently in use: 200
Number of file desc currently in use: 188
Available number of file descriptors: 836
Reserved number of file descriptors: 100
Store Disk files open: 173
[/quote]
[quote]2011/10/19 09:34:13| client_side.cc(2980) okToAccept: WARNING! Your cache is running out of filedescriptors[/quote]
解决方法:
squid各个版本有差异,squid/3.1.3 不支持配置文件中添加配置项:max_filedesc或max_filedescriptors,需要在编译时添加参数。
squid 3.1.3:
[quote] --with-filedescriptors=NUMBER
Force squid to support NUMBER filedescriptors[/quote]
查看Squid相关状态
[quote]
# /byread/bin/squid/bin/squidclient -h 192.168.3.147 mgr:info|grep file
Maximum number of file descriptors: 1024
Largest file desc currently in use: 200
Number of file desc currently in use: 188
Available number of file descriptors: 836
Reserved number of file descriptors: 100
Store Disk files open: 173
[/quote]