Dear All,
I got 2 query which are as follows
1. How to disable logging of few ACLs ? for example I have below ACL which I trust and I do not enable caching
[root@proxy squid]# cat no_cache_domain.txt
.ubuntu.com
.googlevideo.com
.googleapis.com
.googleusercontent.com
.windows.com
.windowsupdate.com
.kaspersky.com
.copernicus.eu
.praction.in
.webwerks.in
.ubuntu.com
.googlevideo.com
.googleapis.com
.googleusercontent.com
.windows.com
.windowsupdate.com
.kaspersky.com
.copernicus.eu
.praction.in
.webwerks.in
# and in squid.conf
acl no-cache-domains dstdomain "/etc/squid/no_cache_domain.txt"
cache deny no-cache-domains
cache deny no-cache-domains
2. Kernel Out of Memory ( I currently have logrotate on weekly basis ), how this issue can be fixed it runs nearly 12 hours without any error
Log error is as follows:
May 1 08:45:20 proxy kernel: Out of memory: Kill process 24384 (squid) score 961 or sacrifice child
May 1 08:45:20 proxy kernel: Killed process 24384, UID 0, (squid) total-vm:23620544kB, anon-rss:15381672kB, file-rss:292kB
May 1 08:45:22 proxy squid[24382]: Squid Parent: child process 24384 exited due to signal 9 with status 0
May 1 08:45:20 proxy kernel: Killed process 24384, UID 0, (squid) total-vm:23620544kB, anon-rss:15381672kB, file-rss:292kB
May 1 08:45:22 proxy squid[24382]: Squid Parent: child process 24384 exited due to signal 9 with status 0
[root@proxy squid]# cat /proc/swaps
Filename Type Size Used Priority
/dev/sda3 partition 8191992 38984 -1
Filename Type Size Used Priority
/dev/sda3 partition 8191992 38984 -1
[root@proxy squid]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Red Hat Enterprise Linux Server release 6.3 (Santiago)
[root@proxy squid]# squid -v
Squid Cache: Version 3.1.10
Squid Cache: Version 3.1.10
[root@proxy squid]# ll -sh /var/log/squid/access.log
37G -rw-r----- 1 squid squid 37G May 1 10:47 /var/log/squid/access.log
37G -rw-r----- 1 squid squid 37G May 1 10:47 /var/log/squid/access.log
[root@proxy squid]# ll -sh /var/log/squid/store.log
52G -rw-r----- 1 squid squid 52G May 1 10:47 /var/log/squid/store.log
52G -rw-r----- 1 squid squid 52G May 1 10:47 /var/log/squid/store.log
[root@proxy squid]# du -sh /cache/
23G /cache/
23G /cache/
[root@proxy squid]# grep '^cache_dir' /etc/squid/squid.conf
cache_dir ufs /cache 25000 16 256
cache_dir ufs /cache 25000 16 256
[root@proxy squid]# vmstat -s
16334568 total memory
16165900 used memory
916616 active memory
14824916 inactive memory
168668 free memory
111912 buffer memory
14773484 swap cache
8191992 total swap
38984 used swap
8153008 free swap
150918525 non-nice user cpu ticks
1039325 nice user cpu ticks
88617581 system cpu ticks
3955184009 idle cpu ticks
8975352 IO-wait cpu ticks
6237581 IRQ cpu ticks
35714514 softirq cpu ticks
0 stolen cpu ticks
3099830316 pages paged in
546843845 pages paged out
2155651 pages swapped in
11728162 pages swapped out
78924125 interrupts
3426967839 CPU context switches
1577614862 boot time
547399 forks
16334568 total memory
16165900 used memory
916616 active memory
14824916 inactive memory
168668 free memory
111912 buffer memory
14773484 swap cache
8191992 total swap
38984 used swap
8153008 free swap
150918525 non-nice user cpu ticks
1039325 nice user cpu ticks
88617581 system cpu ticks
3955184009 idle cpu ticks
8975352 IO-wait cpu ticks
6237581 IRQ cpu ticks
35714514 softirq cpu ticks
0 stolen cpu ticks
3099830316 pages paged in
546843845 pages paged out
2155651 pages swapped in
11728162 pages swapped out
78924125 interrupts
3426967839 CPU context switches
1577614862 boot time
547399 forks
|
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users