niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Squid
Cache.log shows a lot of TCP_MISS and no TCP_HIT
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
Author Message
Jeroen DEMETS - SAVACO
*nix forums beginner


Joined: 21 Apr 2005
Posts: 11

PostPosted: Thu Apr 21, 2005 9:21 am    Post subject: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Hi,

We are evaluating Squid for NT and we are noticing a lot of TCP_MISS and
no TCP_HITs in our logs. We see TCP_IMS_HIT and TCP_REFRESH_MISS too.
I think nothing gets used from the cache.

I've added our configfile (used a script that only shows the lines
without a # in front of it), so the rest is default.
We use version 2.5.STABLE9-NT-CVS

Can anyone tell me what we can do to get TCP_HITs ?

Thanks in advance for any info.


http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl local-servers src 172.20.0.0/16 192.168.100.0/24
no_cache deny QUERY
cache_mem 50 MB
auth_param ntlm program c:/squid/libexec/win32_ntlm_auth.exe
auth_param ntlm children 5
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 2 minutes
auth_param ntlm use_ntlm_negotiate off
auth_param basic program c:/squid/libexec/nt_auth.exe
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
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 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 snmppublic snmp_community public
http_access allow manager localhost
http_access allow manager local-servers
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
external_acl_type NT_global_group %LOGIN
c:/squid/libexec/win32_check_group.exe -G -c
acl allow_internet external NT_global_group internet
acl password proxy_auth REQUIRED
http_access allow password allow_internet
http_access deny all
http_reply_access allow all
cache_mgr webmaster@company.com <mailto:webmaster@company.com>
cachemgr_passwd testpwd all
snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access allow snmppublic local-servers
snmp_access deny all
coredump_dir c:/squid/var/cache

Kind regards,
Jeroen
Back to top
dev singh
*nix forums beginner


Joined: 16 Apr 2005
Posts: 31

PostPosted: Thu Apr 21, 2005 10:19 am    Post subject: Re: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Hi all,

I hav also got same problem .........

Regards
Dev

On 4/21/05, Jeroen DEMETS - SAVACO <jeroen.demets@savaco.com> wrote:
Quote:
Hi,

We are evaluating Squid for NT and we are noticing a lot of TCP_MISS and
no TCP_HITs in our logs. We see TCP_IMS_HIT and TCP_REFRESH_MISS too.
I think nothing gets used from the cache.

I've added our configfile (used a script that only shows the lines
without a # in front of it), so the rest is default.
We use version 2.5.STABLE9-NT-CVS

Can anyone tell me what we can do to get TCP_HITs ?

Thanks in advance for any info.

http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl local-servers src 172.20.0.0/16 192.168.100.0/24
no_cache deny QUERY
cache_mem 50 MB
auth_param ntlm program c:/squid/libexec/win32_ntlm_auth.exe
auth_param ntlm children 5
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 2 minutes
auth_param ntlm use_ntlm_negotiate off
auth_param basic program c:/squid/libexec/nt_auth.exe
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
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 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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 snmppublic snmp_community public
http_access allow manager localhost
http_access allow manager local-servers
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
external_acl_type NT_global_group %LOGIN
c:/squid/libexec/win32_check_group.exe -G -c
acl allow_internet external NT_global_group internet
acl password proxy_auth REQUIRED
http_access allow password allow_internet
http_access deny all
http_reply_access allow all
cache_mgr webmaster@company.com <mailto:webmaster@company.com
cachemgr_passwd testpwd all
snmp_port 3401
snmp_access allow snmppublic localhost
snmp_access allow snmppublic local-servers
snmp_access deny all
coredump_dir c:/squid/var/cache

Kind regards,
Jeroen
Back to top
Elsen Marc
*nix forums Guru Wannabe


Joined: 01 Feb 2005
Posts: 202

PostPosted: Thu Apr 21, 2005 10:42 am    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Quote:


Hi,

We are evaluating Squid for NT and we are noticing a lot of
TCP_MISS and
no TCP_HITs in our logs. We see TCP_IMS_HIT and TCP_REFRESH_MISS too.
I think nothing gets used from the cache.

If you are evaluating using browser refresh options,
then that's normal.


Quote:

I've added our configfile (used a script that only shows the lines
without a # in front of it), so the rest is default.
We use version 2.5.STABLE9-NT-CVS

Can anyone tell me what we can do to get TCP_HITs ?

You can't , but remote webservers can, by providing cacheable

objects.
Check with :

http://www.ircache.net/cgi-bin/cacheability.py

M.
Back to top
Jeroen DEMETS - SAVACO
*nix forums beginner


Joined: 21 Apr 2005
Posts: 11

PostPosted: Thu Apr 21, 2005 11:09 am    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Quote:

You can't , but remote webservers can, by providing cacheable

objects.
Check with :

http://www.ircache.net/cgi-bin/cacheability.py

M.

Hi,

Tnx for you help.
I checked some sites and that site shows "validated" but anyhow, we are
surfing with a testgroup of 10 persons and we got no TCP_HIT at all in
our logs....very weird.
In the log-directory I see files with today's date so something is
getting in the cache but nothing is getting out?

Jeroen.
Back to top
Elsen Marc
*nix forums Guru Wannabe


Joined: 01 Feb 2005
Posts: 202

PostPosted: Fri Apr 22, 2005 4:23 am    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Quote:
...
http://www.ircache.net/cgi-bin/cacheability.py

M.

Hi,

Tnx for you help.
I checked some sites and that site shows "validated" but
anyhow, we are
surfing with a testgroup of 10 persons and we got no TCP_HIT at all in
our logs....very weird.

Squid version ?
Os/platform/version ?

Quote:
In the log-directory I see files with today's date so something is
getting in the cache but nothing is getting out?


Post examples from access.log, if possible.

M.
Back to top
Jeroen DEMETS - SAVACO
*nix forums beginner


Joined: 21 Apr 2005
Posts: 11

PostPosted: Fri Apr 22, 2005 4:48 am    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Hi Marc,

Squid for NT on Windows 2003 Server, 2.5.STABLE9-NT-CVS

A copy-paste from the access.log:

1114152261.388 15 172.20.151.12 TCP_DENIED/407 1861 GET
http://www.adminlife.com/247reference/i/al.gif - NONE/- text/html
1114152261.388 15 172.20.151.12 TCP_DENIED/407 1879 GET
http://www.adminlife.com/247reference//AdminLife.css - NONE/- text/html
1114152261.560 1234 172.20.151.12 TCP_MISS/200 14850 GET
http://www.adminlife.com/247reference/msgs/36/182841.aspx dmsvckor\odbn
DIRECT/66.129.67.100 text/html
1114152261.717 329 172.20.151.12 TCP_MISS/200 1273 GET
http://www.adminlife.com/247reference/i/d.gif dmsvckor\odbn
DIRECT/66.129.67.100 image/gif
1114152261.748 188 172.20.151.12 TCP_MISS/200 1418 GET
http://www.adminlife.com/247reference/i/r.gif dmsvckor\odbn
DIRECT/66.129.67.100 image/gif
1114152261.888 500 172.20.151.12 TCP_MISS/200 3410 GET
http://www.adminlife.com/247reference/i/al.gif dmsvckor\odbn
DIRECT/66.129.67.100 image/gif
1114152262.138 750 172.20.151.12 TCP_MISS/200 7591 GET
http://www.adminlife.com/247reference//AdminLife.css dmsvckor\odbn
DIRECT/66.129.67.100 text/css
1114152262.279 562 172.20.151.12 TCP_MISS/200 15425 GET
http://www.adminlife.com/247reference/i/ads/iext.gif dmsvckor\odbn
DIRECT/66.129.67.100 image/gif
1114152262.279 141 172.20.151.12 TCP_MISS/304 323 GET
http://pagead2.googlesyndication.com/pagead/show_ads.js dmsvckor\odbn
DIRECT/216.239.59.147 text/html
1114152262.998 719 172.20.151.12 TCP_MISS/200 7911 GET
http://pagead2.googlesyndication.com/pagead/ads? dmsvckor\odbn
DIRECT/216.239.59.147 text/html
1114152304.294 1235 172.20.151.12 TCP_MISS/200 30857 GET
http://groups-beta.google.com/groups? dmsvckor\odbn
DIRECT/64.233.167.104 text/html

1114097498.285 15 172.20.151.12 TCP_DENIED/407 1831 GET
http://fxfeeds.mozilla.org/rss20.xml - NONE/- text/html
1114097498.645 485 172.20.151.12 TCP_MISS/200 3656 GET
http://bink.nu/rss.aspx dmsvckor\odbn DIRECT/66.90.102.128 text/xml
1114097499.020 625 172.20.151.12 TCP_MISS/302 663 GET
http://fxfeeds.mozilla.org/rss20.xml dmsvckor\odbn
DIRECT/207.126.111.216 text/html
1114097499.113 93 172.20.151.12 TCP_MISS/301 644 GET
http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss091.xml
dmsvckor\odbn DIRECT/212.58.226.19 text/html
1114097499.363 250 172.20.151.12 TCP_MISS/200 13838 GET
http://news.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
dmsvckor\odbn DIRECT/212.58.226.19 application/xml
1114097508.769 734 172.20.151.12 TCP_MISS/200 10005 GET
http://www.tweakers.net/ dmsvckor\odbn DIRECT/213.239.154.35 text/html
1114097508.801 16 172.20.151.12 TCP_DENIED/407 1815 GET
http://www.tweakers.net/x/s.css.dsp? - NONE/- text/html
1114097508.801 0 172.20.151.12 TCP_DENIED/407 1831 GET
http://www.tweakers.net/x/s.css.dsp? - NONE/- text/html
1114097508.816 93 172.20.151.12 TCP_MISS/200 1757 GET
http://www.tweakers.net/favicon.ico dmsvckor\odbn DIRECT/213.239.154.35
image/x-icon
1114097508.894 93 172.20.151.12 TCP_MISS/200 1913 GET
http://www.tweakers.net/x/s.css.dsp? dmsvckor\odbn DIRECT/213.239.154.35
text/css
1114097509.051 157 172.20.151.12 TCP_MISS/200 9671 GET
http://www.tweakers.net/x/j.js.dsp? dmsvckor\odbn DIRECT/213.239.154.35
application/x-javascript
1114097509.066 0 172.20.151.12 TCP_DENIED/407 1818 GET
http://www.tweakers.net/x/misc.js.dsp - NONE/- text/html
1114097509.098 16 172.20.151.12 TCP_DENIED/407 1834 GET
http://www.tweakers.net/x/misc.js.dsp - NONE/- text/html
1114097509.238 140 172.20.151.12 TCP_MISS/200 4710 GET
http://www.tweakers.net/x/misc.js.dsp dmsvckor\odbn
DIRECT/213.239.154.35 application/x-javascript
1114097509.363 62 172.20.151.12 TCP_DENIED/407 1803 GET
http://www.tweakers.net/g/px.gif - NONE/- text/html
1114097509.519 93 172.20.151.12 TCP_DENIED/407 1806 GET
http://www.tweakers.net/g/zpx.gif - NONE/- text/html
1114097509.598 79 172.20.151.12 TCP_DENIED/407 1818 GET
http://www.tweakers.net/g/nieuws/cat2 - NONE/- text/html
1114097509.598 0 172.20.151.12 TCP_DENIED/407 1818 GET
http://www.tweakers.net/g/nieuws/cat3 - NONE/- text/html
1114097509.660 62 172.20.151.12 TCP_DENIED/407 1833 GET
http://www.tweakers.net/g/fp/abonneren.gif - NONE/- text/html
1114097509.769 0 172.20.151.12 TCP_DENIED/407 1818 GET
http://www.tweakers.net/g/nieuws/cat4 - NONE/- text/html
1114097509.848 79 172.20.151.12 TCP_DENIED/407 1824 GET
http://www.tweakers.net/g/nieuws/cat347 - NONE/- text/html
1114097509.848 0 172.20.151.12 TCP_DENIED/407 1818 GET
http://www.tweakers.net/g/nieuws/cat5 - NONE/- text/html

I hope this helps...
Kind regards,
Jeroen

-----Original Message-----
From: Elsen Marc [mailto:elsen@imec.be]
Sent: vrijdag 22 april 2005 8:24
To: Jeroen DEMETS - SAVACO
Cc: squid-users@squid-cache.org
Subject: RE: [squid-users] Cache.log shows a lot of TCP_MISS and no
TCP_HIT


Quote:
...
http://www.ircache.net/cgi-bin/cacheability.py

M.

Hi,

Tnx for you help.
I checked some sites and that site shows "validated" but anyhow, we
are surfing with a testgroup of 10 persons and we got no TCP_HIT at
all in our logs....very weird.

Squid version ?
Os/platform/version ?

Quote:
In the log-directory I see files with today's date so something is
getting in the cache but nothing is getting out?


Post examples from access.log, if possible.

M.
Back to top
Jeroen DEMETS - SAVACO
*nix forums beginner


Joined: 21 Apr 2005
Posts: 11

PostPosted: Fri Apr 22, 2005 12:20 pm    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Hi all,

I found the error.

acl QUERY urlpath_regex cgi-bin \?
acl NoCacheDomains dstdomain .checkpoint.com
acl local-servers src 172.20.0.0/16 192.168.100.0/24
no_cache deny QUERY
no_cache deny NoCacheDomains
no_cache deny local-servers

This should not be in your configurationfile if your own network is
172.20.0.0/16 and 192.168.100.0/24. Because the ACL looks to the source
IP's it will never cache requests coming from those ranges and therefore
it cannot cache anything.

I also noticed I had pasted the wrong configfile in my first mail so you
guys couldn't have found the cause of my problem... so lesson learned:
always paste the config you are using. *doh*

One question though: what does TCP_IMS_HIT mean? What is "IMS"?

Kind regards,
Jeroen.
Back to top
Elsen Marc
*nix forums Guru Wannabe


Joined: 01 Feb 2005
Posts: 202

PostPosted: Fri Apr 22, 2005 12:25 pm    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Quote:
Hi all,

I found the error.

acl QUERY urlpath_regex cgi-bin \?
acl NoCacheDomains dstdomain .checkpoint.com
acl local-servers src 172.20.0.0/16 192.168.100.0/24
no_cache deny QUERY
no_cache deny NoCacheDomains
no_cache deny local-servers

This should not be in your configurationfile if your own network is
172.20.0.0/16 and 192.168.100.0/24. Because the ACL looks to
the source
IP's it will never cache requests coming from those ranges
and therefore
it cannot cache anything.

I also noticed I had pasted the wrong configfile in my first
mail so you
guys couldn't have found the cause of my problem... so lesson learned:
always paste the config you are using. *doh*

One question though: what does TCP_IMS_HIT mean? What is "IMS"?


http://www.squid-cache.org/Doc/FAQ/FAQ-6.html#ss6.7

M.
Back to top
Jeroen DEMETS - SAVACO
*nix forums beginner


Joined: 21 Apr 2005
Posts: 11

PostPosted: Fri Apr 22, 2005 12:39 pm    Post subject: RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Jeroen


http://www.squid-cache.org/Doc/FAQ/FAQ-6.html#ss6.7

Yes but what is IMS? What does it stand for?

Jeroen.
Back to top
dev singh
*nix forums beginner


Joined: 16 Apr 2005
Posts: 31

PostPosted: Fri Apr 22, 2005 2:11 pm    Post subject: Re: Cache.log shows a lot of TCP_MISS and no TCP_HIT Reply with quote

Hi all,

I hav deone the same thing just checking the results.
I think it is working.

Will update after confirmation.

Regards
dev


On 4/22/05, Jeroen DEMETS - SAVACO <jeroen.demets@savaco.com> wrote:
Quote:
Hi all,

I found the error.

acl QUERY urlpath_regex cgi-bin \?
acl NoCacheDomains dstdomain .checkpoint.com
acl local-servers src 172.20.0.0/16 192.168.100.0/24
no_cache deny QUERY
no_cache deny NoCacheDomains
no_cache deny local-servers

This should not be in your configurationfile if your own network is
172.20.0.0/16 and 192.168.100.0/24. Because the ACL looks to the source
IP's it will never cache requests coming from those ranges and therefore
it cannot cache anything.

I also noticed I had pasted the wrong configfile in my first mail so you
guys couldn't have found the cause of my problem... so lesson learned:
always paste the config you are using. *doh*

One question though: what does TCP_IMS_HIT mean? What is "IMS"?

Kind regards,
Jeroen.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [10 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 2:41 am | All times are GMT
navigation Forum index » Apps » Squid
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts TCP_MISS/503 Fabio Squid 0 Fri Jul 21, 2006 1:28 pm
No new posts vxdmpadm iostat and iostat shows different io rates utkanbir Solaris 0 Fri Jul 21, 2006 12:04 pm
No new posts Limit address_verify_map cache size Domingo Antonio Postfix 3 Tue Jul 18, 2006 2:01 pm
No new posts Cache for email? Chris de Vidal Squid 3 Mon Jul 17, 2006 2:57 am
No new posts Parent cache question Tim Bates Squid 5 Mon Jul 17, 2006 12:33 am

Free Photo Storage | Loans | Online Advertising | MPAA | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3210s ][ Queries: 16 (0.1940s) ][ GZIP on - Debug on ]