| Author |
Message |
Jeroen DEMETS - SAVACO *nix forums beginner
Joined: 21 Apr 2005
Posts: 11
|
Posted: Thu Apr 21, 2005 9:21 am Post subject:
Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
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
|
Posted: Thu Apr 21, 2005 10:19 am Post subject:
Re: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
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
|
Posted: Thu Apr 21, 2005 10:42 am Post subject:
RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
| 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
|
Posted: Thu Apr 21, 2005 11:09 am Post subject:
RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
| 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
|
Posted: Fri Apr 22, 2005 4:23 am Post subject:
RE: 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
|
|
| Back to top |
|
 |
Jeroen DEMETS - SAVACO *nix forums beginner
Joined: 21 Apr 2005
Posts: 11
|
Posted: Fri Apr 22, 2005 12:20 pm Post subject:
RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
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
|
Posted: Fri Apr 22, 2005 12:25 pm Post subject:
RE: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
| 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
|
|
| Back to top |
|
 |
dev singh *nix forums beginner
Joined: 16 Apr 2005
Posts: 31
|
Posted: Fri Apr 22, 2005 2:11 pm Post subject:
Re: Cache.log shows a lot of TCP_MISS and no TCP_HIT
|
|
|
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 |
|
 |
|