晚上收到报警短信,原来是公司squid停止工作,
上网找了一下,原因是acces.log 日志到2G了。
======================================
Thanks to Google for saving my life again as a dummy Linux administrator.
The search term “Squid Parent: child process exited due to signal 25″ led me to who suggests that the Squid server log files (in particularly, the cache.log file) might have exceeded the Linux 2GB file size limitation! Otherwise, the Linux file system might be the culprit – run fsck command to check the file system consistency.
(The Squid v2.6 Stable 5 is running on Red Hat Enterprise Linux AS 3 using kernel version 2.4.21-4.ELsmp).
For my case, it was the cache.log that had exceeded 2GB exactly. After running > cache.log to initialize the file, the Squid Proxy server is up and working again.
To prevent this from happening again, I’ve to enable logrotate on cache.log file too. Previously, only the access.log file is logrotated, as this log file can grow up to a very big file size in just half a day – it log every lines whenever a browser loading a web page from the Web!
===============================================
上次编译安装时 没有打开--with-large-files 这个参数。
./configure --help | grep large
--enable-large-cache-files
Enable support for large cache files (>2GB).
--with-large-files Enable support for large files (logs etc).
POSIX_V6_ILP32_OFFBIG 32 bits with large file support
POSIX_V6_LPBIG_OFFBIG large pointers and files
XBS5_ILP32_OFFBIG 32 bits with large file support (legacy)
XBS5_LPBIG_OFFBIG large pointers and files (legacy)
阅读(903) | 评论(0) | 转发(0) |