Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1373881
  • 博文数量: 112
  • 博客积分: 7112
  • 博客等级: 少将
  • 技术积分: 1299
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-31 16:27
文章分类

全部博文(112)

文章存档

2011年(19)

2010年(20)

2009年(16)

2008年(20)

2007年(37)

分类: LINUX

2011-06-25 00:15:11

 

晚上收到报警短信,原来是公司squid停止工作,

上网找了一下,原因是acces.log 日志到2G了。

======================================

Thanks to 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 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)

阅读(2567) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~