[FUG-BR] squid

marcelo em mginformatica.com marcelo em mginformatica.com
Terça Janeiro 15 14:45:02 BRST 2008


200.0.0.4  é a maquina que ta rodando o squid...
o parametro port é este
http_port 3128 transparent
é um squid sozinho...
to usando proxy transparent, tem um mikrotik com ip 200.0.0.5 que ta redirecionando a porta 80 para porta 3128 do freebsd 200.0.0.4
e tem no maximo uns 140 clientes..
 
quando o problema acontece, nao consigo usar ver as estatistica com o comando
squidclient mgr:info
ai quando eu consigo que ele mostra as estatistica mostra o Numero de FD usada,  proximo aos 32000
variando, ai acreditoq ue quando chega aos 32768,, ai nao mostra nada
e aparece isso no cache .log

2008/01/15 13:34:19| WARNING! Your cache is running out of filedescriptors
2008/01/15 13:34:27| commBind: Cannot bind socket FD 31623 to *:0: (49) Can't assign requested address
2008/01/15 13:34:27| commBind: Cannot bind socket FD 31623 to *:0: (49) Can't assign requested address

estava com squid 2.6.stable14, experimentei passar para o stable18 e continua..
funcionou uns 3 meses normal. agora que comecou a dar esta pane;

proxy# squidclient mgr:info
HTTP/1.0 200 OK
Server: squid/2.6.STABLE18
Date: Tue, 15 Jan 2008 15:49:09 GMT
Content-Type: text/plain
Expires: Tue, 15 Jan 2008 15:49:09 GMT
Last-Modified: Tue, 15 Jan 2008 15:49:09 GMT
X-Cache: MISS from proxy.xxxxx.com.br
X-Cache-Lookup: MISS from proxy.xxxx.com.br:3128

Squid Object Cache: Version 2.6.STABLE18
Start Time:     Tue, 15 Jan 2008 14:05:26 GMT
Current Time:   Tue, 15 Jan 2008 15:49:09 GMT
Connection information for squid:
        Number of clients accessing cache:      84
        Number of HTTP requests received:       89796
        Number of ICP messages received:        0
        Number of ICP messages sent:    0
        Number of queued ICP replies:   0
        Request failure ratio:   0.00
        Average HTTP requests per minute since start:   865.9
        Average ICP messages per minute since start:    0.0
        Select loop called: 590949 times, 10.530 ms avg
Cache information for squid:
        Request Hit Ratios:     5min: 0.0%, 60min: 5.9%
        Byte Hit Ratios:        5min: 8.0%, 60min: 1.9%
        Request Memory Hit Ratios:      5min: 0.0%, 60min: 0.0%
        Request Disk Hit Ratios:        5min: 0.0%, 60min: 25.9%
        Storage Swap size:      18431996 KB
        Storage Mem size:       14764 KB
        Mean Object Size:       30.83 KB
        Requests given to unlinkd:      3851
Median Service Times (seconds)  5 min    60 min:
        HTTP Requests (All):   0.76407 24.21863
        Cache Misses:          0.76407 26.97993
        Cache Hits:            0.00000  0.01745
        Near Hits:             0.00000  0.18699
        Not-Modified Replies:  0.00000  0.00179
        DNS Lookups:           0.00000  0.00190
        ICP Queries:           0.00000  0.00000
Resource usage for squid:
        UP Time:        6222.437 seconds
        CPU Time:       206.417 seconds
        CPU Usage:      3.32%
        CPU Usage, 5 minute avg:        0.06%
        CPU Usage, 60 minute avg:       1.26%
        Process Data Segment Size via sbrk(): 367612 KB
        Maximum Resident Size: 371644 KB
        Page faults with physical i/o: 0
Memory accounted for:
        Total accounted:        62198 KB
        memPoolAlloc calls: 21879393
        memPoolFree calls: 20615644
File descriptor usage for squid:
        Maximum number of file descriptors:   32768
        Largest file desc currently in use:    162
        Number of file desc currently in use:   19
        Files queued for open:                   0
        Available number of file descriptors: 32749
        Reserved number of file descriptors:   100
        Store Disk files open:                   0
        IO loop method:                     kqueue
Internal Data Structures:
        598007 StoreEntries
          2869 StoreEntries with MemObjects
          2864 Hot Object Cache Items
        597882 on-disk objects
proxy#






On Tue, 15 Jan 2008 13:21:21 -0200, "c0re dumped" <ez.c0re at gmail.com> wrote:
> Quem seria "200.0.0.4" ?
> 
> Dê uma olhada no seu parâmetro http_port.
> 
> Vc está usando squid sozinho ou esta fazendo peering com algum outro ?
> 
> Quais itens estão habilitados ? Quantos usuários estão pendurados ?
> 
>



Mais detalhes sobre a lista de discussão freebsd