几个星期前,我在networking上安装了squid,首先它使得网站的默认configuration加载速度非常慢,但是在squid.conf中进行了一些更改(从我公司的另一台服务器上复制而来),现在正在工作大多数情况下,但不时,一些网站仍然加载非常缓慢。
不正是网站加载速度慢,会发生什么,如冻结3或4秒,然后开始加载网站。 这是在configuration更改之前完成的。
我有不同的网站(更好的硬件,但更多的用户)完全相同的鱿鱼configuration,并正在完美工作。
该机器是Debian 6的一个小型准系统,只用于岸墙和鱿鱼。 问题可能与服务器只有512MB的内存和硬盘是SD卡,但如前所述,只用于防火墙和Squid。
这个旧服务器将在不久的将来被删除,但用户和pipe理人员总是抱怨
这是鱿鱼configuration
604a605,608 > acl salesforce dstdomain .salesforce.com > always_direct allow salesforce > cache deny salesforce > 609,611c613,621 < acl localnet src 10.0.0.0/8 # RFC1918 possible internal network < acl localnet src 172.16.0.0/12 # RFC1918 possible internal network < acl localnet src 192.168.0.0/16 # RFC1918 possible internal network --- > #acl localnet src 10.0.0.0/8 # RFC1918 possible internal network > #acl localnet src 172.16.0.0/12 # RFC1918 possible internal network > acl localnet src 192.168.20.0/24 # RFC1918 possible internal network > > #Bad Sites file > acl bad_url dstdomain "/etc/squid/bad-sites.squid" > > > 676c686,687 < #http_access allow localnet --- > http_access deny bad_url > http_access allow localnet 677a689,691 > http_access deny bad_url > > 690a705 > 1747c1762,1763 < # maximum_object_size_in_memory 8 KB --- > # maximum_object_size_in_memory 8KB > maximum_object_size_in_memory 5000 KB 1756c1772 < # memory_replacement_policy lru --- > memory_replacement_policy lru 1798c1814 < # cache_replacement_policy lru --- > cache_replacement_policy lru 1945c1961 < # cache_dir ufs /var/spool/squid 100 16 256 --- > cache_dir ufs /var/spool/squid 25000 16 256 1988,1989c2004,2005 < # maximum_object_size 20480 KB < --- > maximum_object_size 25600 KB > 2005,2006c2021,2022 < # cache_swap_low 90 < # cache_swap_high 95 --- > cache_swap_low 80 > cache_swap_high 95 2631c2647,2659 < # none --- > > #Disble caching for the domain intranet.mysite.com > acl nocache-1 dstdomain intranet.mysite.com > cache deny nocache-1 > > #Disbale cache for site mysite.com > acl nocache-0 dstdomain www.mysite.com > cache deny nocache-0 > > #Disble cache for site salesforce.com > acl nocache-0 dstdomain .salesforce.com > acl nocache-0 dstdomain .force.com > 3100c3128 < # none --- > header_access Accept-Encoding deny all 3364c3392 < # cache_effective_user proxy --- > cache_effective_user squid 3376c3404 < # none --- > cache_effective_group squid 3392c3420 < # none --- > # > 4948a4980,4983 > #Cache Purge > acl PURGE method PURGE > http_access allow PURGE localhost > http_access deny PURGE
任何build议?
我终于find了问题,并与大多数用户一样,涉及DNS和IPv6。 我必须在操作系统中禁用IPv6,并从/ etc / hosts文件中删除IPv6条目。 软件squidclient帮助find问题。