Re: newbie: squid dying & filedescriptors

From: Duane Wessels <[email protected]>
Date: Tue, 29 Jun 1999 10:16:18 -0600

On Tue, 29 Jun 1999, Anders Berg wrote:

>
> Hi.
>
> I am currently running a squid 2.2.STABLE2 on a linux/debian 2.1 box with
> kernel 2.2.7ac4 as a http-accel. What happends after a while (not after
> any regular pattern) is that the squid prosess hangs. It does not die, it
> just stops responding on port 80.
>
> After reading a bit about filedescriptors I am beginning to suspect that's
> where the problem is, even if I don't get any warnings about it anywhere
> in my log files (debug_option ALL,1).

Given your stats below, it doesnt look like you've run out of
file descriptors. Plus, Squid should write a warning to
cache.log when it gets close to the filedescriptor limit.

The next time it hangs, try this from the "squid2.2.STABLE2/src" direcotry:

        % ./squid -k debug
        % sleep 10;
        % ./squid -k debug

Then have a look at the cache.log file. If you see lots of
debugging lines (like "comm_select: X FDs read at ...") then
you know that Squid is not hanging.

Duane W.

> Connection information for squid:
> Number of clients accessing cache: 1403
> Number of HTTP requests received: 85892
> Number of ICP messages received: 0
> Number of ICP messages sent: 0
> Number of queued ICP replies: 0
> Request failure ratio: 0.00%
> HTTP requests per minute: 3316.5
> ICP messages per minute: 0.0
> Select loop called: 450525 times, 3.449 ms avg
> Cache information for squid:
> Request Hit Ratios: 5min: 91.7%, 60min: 90.1%
> Byte Hit Ratios: 5min: 89.9%, 60min: 84.8%
> Storage Swap size: 24379 KB
> Storage Mem size: 2188 KB
> Storage LRU Expiration Age: 7.00 days
> Mean Object Size: 14.52 KB
> Requests given to unlinkd: 1712
> Median Service Times (seconds) 5 min 60 min:
> HTTP Requests (All): 0.00562 0.00562
> Cache Misses: 0.01648 0.01648
> Cache Hits: 0.00562 0.00562
> Near Hits: 0.00000 0.01847
> Not-Modified Replies: 0.00379 0.00379
> DNS Lookups: 0.00000 0.00000
> ICP Queries: 0.00000 0.00000
> Resource usage for squid:
> UP Time: 1553.900 seconds
> CPU Time: 290.790 seconds
> CPU Usage: 18.71%
> CPU Usage, 5 minute avg: 16.88%
> CPU Usage, 60 minute avg: 18.69%
> Maximum Resident Size: 0 KB
> Page faults with physical i/o: 5035
> Memory usage for squid via mallinfo():
> Total space in arena: 6185 KB
> Ordinary blocks: 6022 KB 107 blks
> Small blocks: 0 KB 0 blks
> Holding blocks: 176 KB 1 blks
> Free Small blocks: 0 KB
> Free Ordinary blocks: 162 KB
> Total in use: 6198 KB 100%
> Total free: 162 KB 3%
> Memory accounted for:
> Total accounted: 3428 KB
> File descriptor usage for squid:
> Maximum number of file descriptors: 1024
> Largest file desc currently in use: 116
> Number of file desc currently in use: 107
> Files queued for open: 0
> Available number of file descriptors: 917
> Reserved number of file descriptors: 100
> Store Disk files open: 1
> Internal Data Structures:
> 1694 StoreEntries
> 425 StoreEntries with MemObjects
> 423 Hot Object Cache Items
> 1680 Filemap bits set
> 1679 on-disk objects
>
Received on Tue Jun 29 1999 - 10:11:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:03 MST