[squid-users] squid slow response time

From: Ali Esf <zoofa_at_ymail.com>
Date: Wed, 23 May 2012 15:05:16 -0700 (PDT)

hello list and hello dear Amos thanks for your help. some of my problems with squid are solved but some of them not. i compared squid on Linux Centos 5.8 with cc proxy on Microsoft windows server 2003 and understood that the ccproxy is more fast than squid on the same specification machine and supports more users. i captured the screen of the cc proxy and squid. http://up98.org/upload/server1/02/j/bpufq054uyf1qeamraj.jpg the above picture shows cc proxy  on windows.as you see it supports 64 users and 1264 connections and even more. http://up98.org/upload/server1/02/j/kqlr5fcr2fvk1jafqva4.jpg the above picture shows port 9090 that is configed for http proxy by squid by netstat command. it shows there are 574 connections through port 9090 and squid. http://up98.org/upload/server1/02/j/hprnte4gldvsylb19xf.jpgthe above picture shows the number of users to port 9090 that are 37 users. when the number of users increases the response time of squid become too slowly that sometimes takes 11 - 15 seconds to load the google web page. but i tested that the speed of download files through squid is great and the problem is when loading the pages when users get around 40. and also in cc proxy with even 64 users and more the speed of loading pages is great.it is as like as there is no any proxy. the machines specification is the same and are : ram = 1 GB port = 1 Gbps cpu = Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz, 2 cores os = CentOS Linux 5.8 hard disk space = 30 GB -------------------------------------------------------------------------------- we use squid just for proxy and not for catching. and need authentication just by user name and password through mysql database. here is the configuration:: cache deny all # # Recommended minimum configuration: # auth_param basic program /usr/local/squid/libexec/squid_db_auth --user squid_user --password user_password --plaintext --persist acl manager proto cache_object acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed 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 acl user_pass_auth proxy_auth REQUIRED # replace 10.0.0.1 with your webserver IP # # Recommended minimum Access Permission configuration: # # Only allow cachemgr access from localhost http_access allow manager localhost http_access deny manager # Deny requests to certain unsafe ports http_access deny !Safe_ports #http_access deny CONNECT !SSL_Ports # Deny CONNECT to other than secure SSL ports # We strongly recommend the following be uncommented to protect innocent # web applications running on the proxy server who think the only # one who can access services on "localhost" is a local user #http_access deny to_localhost # # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS # # Example rule allowing access from your local networks. # Adapt localnet in the ACL section to list your (internal) IP networks # from where browsing should be allowed http_access allow user_pass_auth http_access deny all access_log none cache_store_log none cache_log /dev/null dns_nameservers 4.2.2.4 8.8.8.8 # And finally deny all other access to this proxy # Squid normally listens to port 3128 http_port 9090 # Uncomment and adjust the following to add a disk cache directory. #cache_dir ufs /usr/local/squid/var/cache 100 16 256 # Leave coredumps in the first cache dir #coredump_dir /usr/local/squid/var/cache visible_hostname www.amirvpn.in # Add any of your own refresh_pattern entries above these. refresh_pattern ^ftp:        1440    20%    10080 refresh_pattern ^gopher:    1440    0%    1440 refresh_pattern -i (/cgi-bin/|\?) 0    0%    0 refresh_pattern .        0    20%    4320 cache_effective_user squid cache_effective_group squid cache_mem 800 MB regards ali
Received on Wed May 23 2012 - 22:05:22 MDT

This archive was generated by hypermail 2.2.0 : Sun May 27 2012 - 12:00:04 MDT