[squid-users] Squid flushcache doesn't complete shutdown / exit normally

From: storm_m2138 <karamjeetkhalsa_at_8z.com>
Date: Fri, 30 Dec 2011 09:22:10 -0800 (PST)

Hello,

Each day we clear our Squid cache using:

/etc/init.d/squid flushcache

Normally when we do this we see an output similar to this in cache.log
(notice the SHutting down...) --

2011/12/30 06:30:01| Preparing for shutdown after 375039 requests
2011/12/30 06:30:01| Waiting 30 seconds for active connections to finish
2011/12/30 06:30:01| FD 19 Closing HTTP connection
2011/12/30 06:30:32| Shutting down...
2011/12/30 06:30:32| FD 20 Closing ICP connection
2011/12/30 06:30:32| Closing unlinkd pipe on FD 17
2011/12/30 06:30:32| storeDirWriteCleanLogs: Starting...
2011/12/30 06:30:32| 65536 entries written so far.
2011/12/30 06:30:32| 131072 entries written so far.
2011/12/30 06:30:32| 196608 entries written so far.
2011/12/30 06:30:32| 262144 entries written so far.
2011/12/30 06:30:32| Finished. Wrote 297317 entries.
2011/12/30 06:30:32| Took 0.2 seconds (1657932.3 entries/sec).
CPU Usage: 597.807 seconds = 310.054 user + 287.753 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena: 260748 KB
        Ordinary blocks: 259972 KB 9562 blks
        Small blocks: 0 KB 5 blks
        Holding blocks: 416 KB 2 blks
        Free Small blocks: 0 KB
        Free Ordinary blocks: 775 KB
        Total in use: 260388 KB 100%
        Total free: 776 KB 0%
2011/12/30 06:30:32| Squid Cache (Version 2.6.STABLE17): Exiting normally.
2011/12/30 06:30:33| Starting Squid Cache version 2.6.STABLE17 for
i686-redhat-linux-gnu
...

For the last few days, however, it seems that the flushcache command isn't
doing the same thing that it used to do. Now, when we run this same command,
we don't see the "Shutting Down..." in the log file. Additionally, the tool
that we use to monitor Squid's cache is reporting that the cache isn't being
cleared. Here is the new log output (much shorter):

2011/12/30 06:30:01| Preparing for shutdown after 2098091 requests
2011/12/30 06:30:01| Waiting 30 seconds for active connections to finish
2011/12/30 06:30:01| FD 19 Closing HTTP connection
2011/12/30 06:30:20| Starting Squid Cache version 2.6.STABLE17 for
i686-redhat-linux-gnu...

Possible solutions we are considering are doing a manual shutdown / cache
clear or increasing the amount of time Squid waits for active connections to
close.

Any insights / suggestions appreciated.

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-flushcache-doesn-t-complete-shutdown-exit-normally-tp4246263p4246263.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Fri Dec 30 2011 - 17:22:12 MST

This archive was generated by hypermail 2.2.0 : Sat Dec 31 2011 - 12:00:02 MST