[squid-users] squid hogging all cpu and lots of memory

From: Iulian Dragomir <dr_iulian@dont-contact.us>
Date: Sun, 4 Dec 2005 04:44:54 -0800 (PST)

Hello folks,

I have installed latest stable version of squid (2.5
stable 12)
on a server with the following specs dual xeon 3.2
ghz, 1gb ram, 4x36.4 gb scsi 15k rpm
When i start squid with the acl's i have defined in
squid.conf (most of the acl examples are taken from
squid-cache.org from some other people's examples) cpu
goes to 99%-100% and memory to about 60% and browsing
through squid is painfull, like 60-80% decrease in
speed browsing and loading of sites.

When i comment out the acls its working just fine
(0.2-1.1% cpu and 0.1% mem) and browsing speed is just
normal.

These are the acl's that give me the problems (or so i
think, because if i comment those out its working just
fine):

#acl users src 192.168.0.0/255.255.255.0
#acl magic_words1 url_regex -i 192.168
#delay_pools 2
#delay_class 1 2
#delay_parameters 1 512000/512000 20000/512000
#delay_access 1 allow users

#delay_class 2 2
#delay_parameters 2 -1/-1 -1/-1
#delay_access 2 allow magic_words1
#reply_body_max_size 67108864 deny

#acl hacking1 url_regex
"/usr/local/squid/etc/deny/hacking1"
#acl noporn url_regex
"/usr/local/squid/etc/deny/noporn"
#acl hacking2 url_regex
"/usr/local/squid/etc/deny/hacking2"
#acl porn_deny1 url_regex
"/usr/local/squid/etc/deny/porn_deny1"
#acl porn_deny2 url_regex
"/usr/local/squid/etc/deny/porn_deny2"
#acl proxy_deny url_regex
"/usr/local/squid/etc/deny/proxy_deny"
#acl warez_deny url_regex
"/usr/local/squid/etc/deny/warez_deny"
#acl warez_deny2 url_regex
"/usr/local/squid/etc/deny/warez_deny2"
acl download2 urlpath_regex -i
"/usr/local/squid/etc/denydownload.txt"
acl POST method POST
http_access deny download2
http_reply_access deny download2

#http_access allow noporn
#http_access deny hacking1
#http_access deny hacking2
#http_access deny porn_deny1
#http_access deny porn_deny2
#http_access deny proxy_deny
#http_access deny warez_deny
#http_access deny warez_deny2

What am I doing wrong? Please help if possible, Thank
you

                
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
Received on Sun Dec 04 2005 - 05:44:56 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST