Search squid archive

Re: Surfing hangs after period of time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



First thing - don't use ufs, use aufs.



Adrian

On Tue, Apr 29, 2008, Usrbich wrote:
> 
> Hi2all!
> 
> My users are experiencing problems with squid few hours after it starts.
> I have following configuration: P4 3GHz, 1.1 GB RAM, CentOS, Squid 2.6. This
> is a virtual machine and also a DNS server.
> Number of active users at one time is about 40-50. The problem is, when I
> start Squid, it works fine for couple of hours, and then the behaviour from
> the client side is that pages stop to download 10-20 secs, like everything
> stops, then it starts back and so on. When it stops, I hit refresh button
> and then it starts to download again. In that time, my free memory is around
> 400MB, that's some 45%, it isn't swapping, cpu is low. I believe my
> configuration is wrong, and need some help tunning it. Parameters are
> majorly by default values. So, I attach my squid.conf:
> 
> http_port 10.19.2.3:8080 
> 
> hierarchy_stoplist cgi-bin ?
> 
> acl QUERY urlpath_regex cgi-bin \?
> cache deny QUERY
> 
> acl apache rep_header Server ^Apache
> broken_vary_encoding allow apache
> 
> cache_mem 32 MB
> 
> cache_swap_low 90
> cache_swap_high 95
> 
> maximum_object_size 4096 KB
> 
> memory_replacement_policy lru
> 
> cache_dir ufs /var/spool/squid 1500 16 256
> 
> access_log /var/log/squid/access.log squid
> 
> cache_log /var/log/squid/cache.log
> 
> cache_store_log /var/log/squid/store.log
> 
> pid_filename /var/run/squid.pid
> 
> check_hostnames on
> 
> dns_nameservers 10.19.2.3 195.29.149.196
> 
> hosts_file /etc/hosts
> 
> refresh_pattern ^ftp:		1440	20%	10080
> refresh_pattern ^gopher:	1440	0%	1440
> refresh_pattern .		0	20%	4320
> 
> acl all src 0.0.0.0/0.0.0.0
> acl manager proto cache_object
> acl localhost src 127.0.0.1/255.255.255.255
> acl to_localhost dst 127.0.0.0/8
> acl SSL_ports port 443
> acl Safe_ports port 80		# http
> acl Safe_ports port 21		# ftp
> acl Safe_ports port 443		# https
> acl Safe_ports port 70		# gopher
> acl Safe_ports port 210		# wais
> acl Safe_ports port 1025-65535	# unregistered ports
> acl Safe_ports port 280		# http-mgmt
> acl Safe_ports port 488		# gss-http
> acl Safe_ports port 591		# filemaker
> acl Safe_ports port 777		# multiling http
> acl CONNECT method CONNECT
> 
> http_access allow all
> http_access allow manager localhost
> http_access deny manager
> http_access deny !Safe_ports
> http_access deny CONNECT !SSL_ports
> 
> acl zbw_network src 10.19.0.0/16
> 
> http_access allow zbw_network
> http_access allow localhost
> http_access deny all
> 
> http_reply_access allow all
> 
> icp_access allow all
> 
> cache_mgr administrator@xxxxxxxxxxxx
> 
> mail_from administrator@xxxxxxxxxxxx
> 
> mail_program postfix
> 
> visible_hostname nameserver.zbw.intranet
> 
> snmp_port 1234
> 
> delay_class 1 2
> 
> delay_access 1 allow zbw_network
> delay_access 1 deny all
> 
> delay_parameters 1 -1/-1 128000/1640000
> 
> coredump_dir /var/spool/squid
> -- 
> View this message in context: http://www.nabble.com/Surfing-hangs-after-period-of-time-tp16976682p16976682.html
> Sent from the Squid - Users mailing list archive at Nabble.com.

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux