Squid trava máquina

1. Squid trava máquina

Rudimar Remontti
remontti

(usa Debian)

Enviado em 06/12/2008 - 08:40h

Olá, estou tendo problema com squid, ele esta travando a maquina após algumas horas.

//Intel(R) Celeron(R) D CPU 430 @ 1.80GHz
// 1024 Mem


http_port 3128 transparent

cache_mem 64 MB
maximum_object_size_in_memory 4096 KB
maximum_object_size 51200 KB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85
refresh_pattern ^ftp: 15 20% 2280
refresh_pattern ^gopher: 15 0% 2280
refresh_pattern . 15 20% 2280
cache_dir ufs /var/spool/squid 8000 16 256

cache_access_log /var/log/squid/access.log

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

#http_access allow all
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

# MARCAR PACOTES
zph_tos_local 0x30
zph_tos_peer 0
zph_tos_parent off
zph_preserve_miss_tos on

# LIERA NAVEGACAO PARA A REDE
acl redewireless src 192.0.0.0/8
http_access allow localhost
http_access allow redewireless

# BLOQUEIA O RESTO
http_access deny all


  


2. Re: Squid trava máquina

Leonardo Macedo Cerqueira
cromado

(usa Debian)

Enviado em 06/12/2008 - 09:25h

Deve estar consumindo muita memória:
Deixa seu cache mais ou menos assim:









cache_mem 64 MB
maximum_object_size_in_memory 128 KB
maximum_object_size 300 MB
minimum_object_size 0 KB
cache_swap_low 90
cache_swap_high 95
cache_dir ufs /var/spool/squid3 2048 16 256


abç


3. Re: Squid trava máquina

Rudimar Remontti
remontti

(usa Debian)

Enviado em 08/12/2008 - 10:34h

já alterei para:

cache_mem 32 MB
maximum_object_size_in_memory 64 KB
maximum_object_size 50 MB
minimum_object_size 0 KB
cache_swap_low 80
cache_swap_high 85

Mais o consumo de memória ainda sobe bastante.
Se eu direcionar poucas maquinas, ele aguenta, o problema q tenho aproximadamente 200 usuarios online nesta máquina.


4. coloquei mais 2 GB mas continua subindo

Rudimar Remontti
remontti

(usa Debian)

Enviado em 08/12/2008 - 14:40h

total used free shared buffers cached
Mem: 2979 1191 1788 0 46 996
-/+ buffers/cache: 148 2831
Swap: 2588 0 2588

MemTotal: 3051016 kB
MemFree: 1831368 kB
Buffers: 47500 kB
Cached: 1020104 kB
SwapCached: 0 kB
Active: 1079004 kB
Inactive: 57488 kB
HighTotal: 2161280 kB
HighFree: 1068956 kB
LowTotal: 889736 kB
LowFree: 762412 kB
SwapTotal: 2650684 kB
SwapFree: 2650684 kB
Dirty: 5504 kB
Writeback: 0 kB
AnonPages: 68860 kB
Mapped: 9220 kB
Slab: 76688 kB
PageTables: 716 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 4176192 kB
Committed_AS: 130336 kB
VmallocTotal: 114680 kB
VmallocUsed: 3460 kB
VmallocChunk: 111152 kB



5. Squid

Bruno Nascimento
bruno_nascimento

(usa Debian)

Enviado em 09/12/2008 - 08:19h

No arquivo /etc/default/squid na linha SQUID_MAXFD deve estar o valor 1024 altere ele para 4096 e teste ...

Abraços







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts