April 19, 2024, 08:53:47 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Slow squid  (Read 3455 times)

Offline mummiez

  • New Member
  • Posts: 1
Slow squid
« on: February 22, 2009, 08:26:04 PM »
Hi
We have a squid proxy server which we had to disable caching because of hardware recourses. When opening WebPages using proxy a page that loads in 2 seconds when bypassing proxy will use up 120 second using the proxy. Every object on a page pauses for 2 seconds before it starts downloading, but when it starts the speed is normal. If we do any speed test the server transfers data around 20Mb/s, but when a page contains hundreds of objects it takes forever to load.
This made me suspect a dns lookup delay but doing a nslookup on the server is without delay, any tips where to start troubleshooting?

Here are the config
squid.conf:
http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
cache_dir diskd /data/squid/cache 4096 16 256
cache_access_log /data/squid/log/access.log
cache_log /data/squid/log/cache.log
cache_store_log none
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
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 563
acl Safe_ports port 80          acl Safe_ports port 81          acl Safe_ports port 82          acl Safe_ports port 21          acl Safe_ports port 443 563     acl Safe_ports port 70          acl Safe_ports port 210         acl Safe_ports port 1025-65535  acl Safe_ports port 280         acl Safe_ports port 488         acl Safe_ports port 591         acl Safe_ports port 777         acl CONNECT method CONNECT
acl GET method GET
http_access allow manager localhost
http_access allow manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost
acl our_networks src 62.92.160.0/19 194.248.54.0/24 212.125.176.0/24 194.248.57.0/24 194.248.56.0/24
 10.0.0.0/8 172.24.0.0/16 158.89.2.0/23 158.89.253.180/30 172.25.0.0/16 192.58.37.0/24 193.214.210.0
/23 62.73.210.0/24 172.16.167.0/25 89.254.0.0/18
http_access allow our_networks
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all

« Last Edit: February 22, 2009, 08:39:36 PM by mummiez »