[squid-users] slow response for cached objects

From: nitesh naik <niteshnaik_at_gmail.com>
Date: Wed, 29 Oct 2008 15:08:54 +0530

Hi,

Sometimes I see squid is taking time in delivering contents even if
object is available in its cache. Any idea what could be the reason?
I used external url rewrite program to strip the query string. Is it
slowing down serving process ?

First 2 line shows squid took 703 milliseconds to deliver the contents
and rest of the url shows 0 milliseconds

1225272393.185 703 81.52.249.107 TCP_MEM_HIT/200 1547 GET
http://s2.xyz.com/1699/563/i0.js?z=5002 - NONE/-
application/x-javascript
1225272393.185 703 168.143.241.52 TCP_MEM_HIT/200 2230 GET
http://s5.xyz.com/496/111/109/i30.js?z=6718 - NONE/-
application/x-javascript
1225272393.375 0 81.52.249.100 TCP_MEM_HIT/200 1418 GET
http://s2.xyz.com/371/9/i10.js?z=148 - NONE/- application/x-javascript
1225272393.375 0 168.143.241.12 TCP_MEM_HIT/200 1361 GET
http://s5.xyz.com/670/28/i6.js?z=5812 - NONE/-
application/x-javascript
1225272393.381 0 81.52.249.101 TCP_MEM_HIT/200 1288 GET
http://s1.xyz.com/558/622/9/i0.js?z=4158 - NONE/-
application/x-javascript

Following is rewrite url helper program I use which was sent by Henrik
and I have modified it bit to strip the query string.

#!/usr/bin/perl -an
BEGIN { $|=1; }
$id = $F[0];
       $id =~ s/\?.*//;
       print "$id\n";
       next;

Regards
Nitesh
Received on Wed Oct 29 2008 - 09:38:59 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 29 2008 - 12:00:06 MDT