Re: [squid-users] CPU consumption

From: Henrik Nordstrom <[email protected]>
Date: Tue, 08 Apr 2003 09:40:51 +0200

"Ethy H. Brito" wrote:

> tent=&.save=1&.hash=1&.md5=1' 2003/04/07 19:00:12| aclMatchRegex:
> looking for '(.*\.|)*icq.*\.com'

This regex do look a little odd...

  (.*\.|)*

Means anything dot OR nothing, repeated 0 to infinity number of times.

and will always match, but it should not cause a hang.

I think what you actually want there is a something like

  acl ... dstdomain_regex (^|\.)icq.*\.com$

Can you try attaching with a debugger to verify exacly where Squid has
hung:

  gdb /path/to/squid `cat /usr/local/squid/var/log/squid.pid`
  backtrace

Regards
Henrik

>
> What is wrong with this expression???
> It passed a dozen times thru it before going dead:
>
> # grep icq logs/cache.log |wc -l
> 231
>
> BTW, squid was compiled with:
> ./configure --enable-linux-netfilter '--enable-removal-policies=lru
> heap' \--enable-gnuregex
>
> --
>
> Ethy H. Brito /"\
> InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
> +55 (12) 3941-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
> S.J.Campos - Brasil / \
Received on Tue Apr 08 2003 - 02:00:54 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:14:46 MST