最近公司網(wǎng)站的squid離奇crash,用下面命令啟動(dòng)squid:
squid -N -d 9
-N: 用非守護(hù)進(jìn)程方式運(yùn)行
-d 9: 9級(jí)輸出信息(最詳細(xì))
最后看到錯(cuò)誤信息并且squid馬上crash:
"File size limit exceeded (core dumped)"
同事說(shuō)可能是log文件太大,后來(lái)google到一
郵件列表的信息確認(rèn)了的確是,是log文件中的store.log超過(guò)2G時(shí)就會(huì)報(bào)這個(gè)錯(cuò)誤。
解決方法:
在squid.conf中查找"TAG: cache_store_log",在其下插入一行
cache_store_log none
即可把store log關(guān)掉