Squid cache probelm

Posted on 2004-09-09
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?

Question by:chaok
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

ID: 12018734
well i got the web part working

Expert Comment

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


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

Expert Comment

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

Author Comment

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

2004/09/09 22:09:18| CACHEMGR: <unknown>@ requesting 'menu'
2004/09/09 22:09:18| CACHEMGR: <unknown>@ requesting 'menu'
2004/09/09 22:09:19| CACHEMGR: <unknown>@ requesting 'menu'
2004/09/09 22:09:30| CACHEMGR: <unknown>@ 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/ application/x-shockwave-flash
1094785826.114    205 TCP_MISS/200 251 GET - DIRECT/ image/gif
1094785826.122    187 TCP_MISS/200 1099 GET - DIRECT/ image/gif
1094785826.211    215 TCP_MISS/200 1150 GET - DIRECT/ image/gif
1094785826.343    414 TCP_MISS/200 1661 GET - DIRECT/ text/html
1094785826.369    245 TCP_MISS/200 19479 GET - DIRECT/ application/x-shockwave-flash
1094785826.370    159 TCP_MISS/200 463 GET - DIRECT/ application/x-shockwave-flash
1094785826.412    297 TCP_MISS/200 339 GET - DIRECT/ text/html
1094785894.224   2578 TCP_MISS/200 3989 GET - DIRECT/ text/html

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
      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
      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
      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

Thanks for any help

Accepted Solution

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.

Featured Post

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

696 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