niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 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
status codes meanings..
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Linda W
*nix forums beginner


Joined: 06 May 2005
Posts: 20

PostPosted: Sun Jul 16, 2006 6:50 am    Post subject: status codes meanings.. Reply with quote

I was trying to track down a problem and got distracted on squid status
codes. I was curious on how to interpret these. I extracted the status
codes from each line, sorted, counted and got:

1 TCP_CLIENT_REFRESH_MISS/000
955 TCP_CLIENT_REFRESH_MISS/200
511 TCP_CLIENT_REFRESH_MISS/304
3 TCP_CLIENT_REFRESH_MISS/404
1 TCP_CLIENT_REFRESH_MISS/503
1 TCP_HIT/200
6 TCP_MISS/000
9638 TCP_MISS/200
224 TCP_MISS/206
13 TCP_MISS/301
102 TCP_MISS/302
5 TCP_MISS/303
32 TCP_MISS/304
1 TCP_MISS/403
36 TCP_MISS/404
3 TCP_MISS/504
1 TCP_NEGATIVE_HIT/404
2 TCP_SWAPFAIL_MISS/200
---
I note that most of the above is classified as a TCP_MISS. I'm guessing
that this means that the request wasn't in the "cache", and had to be
fetched?

So, the TCP_CLIENT_REFRESH, does that happen when a page is refreshed?

If something is being refreshed, wouldn't it be likely to be in the
cache?

I notice 1 "TCP_HIT" -- does that mean only 1 item (over several
days) was
found and returned from the cache? (!)

Also not sure -- what would a "SWAPFAIL_MISS" be (besides being a MISS)?
Seems like an odd status to be returned in the normal course of events.

But maybe you see my concern --- if I am interpreting these status codes
properly, only one request in over a week was able to be satisfied out
of the
cache...that can't be...can it?

In the case of the REFRESH, except for an explicit "nocache" type tag,
shouldn't most (or at least "many') of those be serviceable from the cache?

It's hard to believe virtually nothing was cache-able -- or how should
I be interpreting this data? (I know the numeric codes are HTML
response codes and
are easily referenced from documentation; it's the TCP_MISS part that
has me bothered).

Thanks for any "lights"...Smile
Linda
Back to top
Christoph Haas
*nix forums Guru Wannabe


Joined: 05 Mar 2005
Posts: 263

PostPosted: Sun Jul 16, 2006 9:59 pm    Post subject: Re: status codes meanings.. Reply with quote

On Sat, Jul 15, 2006 at 11:50:37PM -0700, Linda W wrote:
Quote:
I was trying to track down a problem and got distracted on squid status
codes. I was curious on how to interpret these.

See
http://wiki.squid-cache.org/SquidFaq/SquidLogs#head-2914f3a846d41673d4ae34018142e672b8f258ce

Regards
Christoph
Back to top
Visolve Squid Development
*nix forums addict


Joined: 11 Mar 2005
Posts: 76

PostPosted: Wed Jul 19, 2006 9:22 am    Post subject: Re: status codes meanings.. Reply with quote

Linda W wrote:

Quote:
I was trying to track down a problem and got distracted on squid status
codes. I was curious on how to interpret these. I extracted the status
codes from each line, sorted, counted and got:

1 TCP_CLIENT_REFRESH_MISS/000
955 TCP_CLIENT_REFRESH_MISS/200

*TCP_CLIENT_REFRESH_MISS -* The client issued a "no-cache" pragma, or
some analogous cache control command along with the request. Thus, the
cache has to refetch the object.

Quote:
6 TCP_MISS/000

*TCP_MISS* -The requested object was not in the cache

Quote:

1 TCP_NEGATIVE_HIT/404

*TCP_NEGATIVE_HIT* - Request for a negatively cached object, e.g. "404
not found", for which the cache believes to know that it is
inaccessible. Also refer to the explainations for /negative_ttl/ in your
/squid.conf/ file.

Quote:
2 TCP_SWAPFAIL_MISS/200
---

*TCP_SWAPFAIL_MISS* - The object was believed to be in the cache, but
could not be accessed.

For more details of squid status codes in:
http://wiki.squid-cache.org/SquidFaq/SquidLogs#head-2914f3a846d41673d4ae34018142e672b8f258ce

--
Thanks,
Visolve Squid Team,
http://squid.visolve.com
Back to top
Google

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

Similar Topics
Topic Author Forum Replies Last Post
No new posts What is current status of frameworks? Which to choose? Marek Zawadzki PHP 1 Fri Jul 21, 2006 1:05 pm
No new posts anvil status reports not on time? Carlos Carvalho Postfix 5 Thu Jul 20, 2006 12:04 am
No new posts Help with script to get backup log status on windows systems Matt Williamson Perl 5 Wed Jul 19, 2006 3:58 pm
No new posts Changing the time of update-status Mazilo Suse 4 Tue Jul 18, 2006 1:45 pm
No new posts what's the python status? Thomas Bushnell BSG devel 0 Mon Jul 17, 2006 9:30 pm

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum |  email marketing service
 
Privacy Policy
[ Time: 0.0358s ][ Queries: 16 (0.0036s) ][ GZIP on - Debug on ]