- 论坛徽章:
- 0
|
Squid占用Cpu/memory太多,不知怎么回事?
原帖由 "jacy.wu" 发表:
日志量是很大的,三天就有1G的大小,我的意思是说哪有参数控制日志文件的大小,当它达到某一个值时会自动压缩,或者会自动清空
# TAG: logfile_rotate
# Specifies the number of logfile rotations to make when you
# type 'squid -k rotate'. The default is 10, which will rotate
# with extensions 0 through 9. Setting logfile_rotate to 0 will
# disable the rotation, but the logfiles are still closed and
# re-opened. This will enable you to rename the logfiles
# yourself just before sending the rotate signal.
#
# Note, the 'squid -k rotate' command normally sends a USR1
# signal to the running squid process. In certain situations
# (e.g. on Linux with Async I/O), USR1 is used for other
# purposes, so -k rotate uses another signal. It is best to get
# in the habit of using 'squid -k rotate' instead of 'kill -USR1
# <pid>;'.
#
logfile_rotate 2 \\保留两次的log
用这个命令置换log squid -k rotate |
|