Solved

Squid cache probelm

Posted on 2004-09-09
5
402 Views
Last Modified: 2008-03-04
I've been working with Squid for 2 weeks now trying to get it up and running.  For a long time I couldn't get it to cache my webpages, but I think it is now.  How do I tell for sure?

I'm also trying to get the web interface to work.  The directions said to put cachemgr.cgi into the cgi-bin of apache.  I can access the page, but it won't let me log in...any ideas?

THanks
0
Comment
Question by:chaok
  • 3
  • 2
5 Comments
 

Author Comment

by:chaok
ID: 12018734
well i got the web part working
0
 
LVL 5

Expert Comment

by:paranoidcookie
ID: 12020436
Take a look at the log files check out

/var/log/squid/access.log
/var/log/squid/cach.log

If its installed you can get some statistics from calimaris /var/log/squid/access.log
0
 
LVL 5

Expert Comment

by:paranoidcookie
ID: 12020450
Oh did you set up the acl's for cachemanger in squid.conf?
0
 

Author Comment

by:chaok
ID: 12023463
ok, i have it running i believe.  I'm running it so i can watch what is going on ...here is a few thigns its saying

2004/09/09 22:09:18| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:18| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:19| CACHEMGR: <unknown>@127.0.0.1 requesting 'menu'
2004/09/09 22:09:30| CACHEMGR: <unknown>@127.0.0.1 requesting 'objects'

That seems good.

What do I need to look for in the cache.log?

Here is  abit from my access./frame.swf? - DIRECT/63.216.25.139 application/x-shockwave-flash
1094785826.114    205 192.168.1.65 TCP_MISS/200 251 GET http://a.tribalfusion.com/play/ESLLPPBLPHOJIEOIGVPTKCPDPOMPWRGVSXEEMRGQUWQMXMDLKLOPNGPFCAKQWPKQPMKIONIV/ - DIRECT/208.185.101.168 image/gif
1094785826.122    187 192.168.1.65 TCP_MISS/200 1099 GET http://www.experts-exchange.com/images/acceptButton.gif - DIRECT/64.156.132.140 image/gif
1094785826.211    215 192.168.1.65 TCP_MISS/200 1150 GET http://www.experts-exchange.com/images/submitButton.gif - DIRECT/64.156.132.140 image/gif
1094785826.343    414 192.168.1.65 TCP_MISS/200 1661 GET http://pagead2.googlesyndication.com/pagead/ads? - DIRECT/64.233.171.104 text/html
1094785826.369    245 192.168.1.65 TCP_MISS/200 19479 GET http://cdn1.tribalfusion.com/media/205096/728x90.swf - DIRECT/63.216.25.139 application/x-shockwave-flash
1094785826.370    159 192.168.1.65 TCP_MISS/200 463 GET http://cdn1.tribalfusion.com/media/205096/button.swf - DIRECT/63.216.25.135 application/x-shockwave-flash
1094785826.412    297 192.168.1.65 TCP_MISS/200 339 GET http://itxt.vibrantmedia.com/intellitxt/front.asp? - DIRECT/63.211.210.221 text/html
1094785894.224   2578 192.168.1.65 TCP_MISS/200 3989 GET http://gmail.google.com/gmail? - DIRECT/64.233.171.107 text/html
log

---------------------
Does that look normal?

Also in my web cache manager when I look under all Cache Objects...its all pictures, no html pages why is that?
-------------
 KEY D263B400A9AED6E9442F915D527A7BEC
      GET http://squid:3128/squid-internal-static/icons/anthony-script.gif
      STORE_OK      IN_MEMORY     SWAPOUT_NONE PING_NONE  
      SPECIAL,CACHABLE,VALIDATED
      LV:1094785914 LU:1094785914 LM:1093910577 EX:-1      
      0 locks, 0 clients, 0 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 379
      swapout: 0 bytes queued

KEY B3A43AB124CD1A4CC0B96671EFB06CC8
      GET http://squid:3128/squid-internal-static/icons/anthony-unknown.gif
      STORE_OK      IN_MEMORY     SWAPOUT_NONE PING_NONE  
      SPECIAL,CACHABLE,VALIDATED
      LV:1094785914 LU:1094785914 LM:1093910577 EX:-1      
      0 locks, 0 clients, 0 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 387
      swapout: 0 bytes queued

KEY CAC574313811A75B44E12173CD5BF424
      GET cache_object://localhost/objects
      STORE_PENDING NOT_IN_MEMORY SWAPOUT_NONE PING_NONE  
      DELAY_SENDING,RELEASE_REQUEST,PRIVATE,VALIDATED
      LV:-1        LU:1094786029 LM:-1        EX:1094786029
      2 locks, 1 clients, 1 refs
      Swap Dir -1, File 0XFFFFFFFF
      inmem_lo: 0
      inmem_hi: 1591
      swapout: 0 bytes queued
      Client #0, 0x8f54d00
            copy_offset: 1286
            seen_offset: 1286
            copy_size: 4096
            flags:
-----------------------


Thanks for any help
0
 
LVL 5

Accepted Solution

by:
paranoidcookie earned 125 total points
ID: 12024409
Looks like its running fine, have you set minimum object sizes? If so the html might be too small to cache.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now