[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Fwd: Squid consumindo memória RAM]



Ola Pessoal

Tenho um servidor CORE 2 DUE com 1GB RAM, 160GB de HD, esta com o Debian 4.0. Instalei o Squid 2.6 nele e após colocado para funcionar percebi que ele esta consumindo toda a memória RAM da Maquina (por enquanto somente uma maquina esta utilizado o squid) sendo assim esta deixando a internet muito lenta.

Como posso limitar este uso para que não consuma toda memoria RAM

Segue abaixo o arquivo  squid.conf

###################

http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_mem 32 MB
cache_swap_low  90
cache_swap_high 95
maximum_object_size 40 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 64 KB
memory_pools off
cache_dir ufs /var/spool/squid 1024 16 256
access_log /var/log/squid/access.log squid
hosts_file /etc/hosts
refresh_pattern ^ftp:        15    20%    2280
refresh_pattern ^gopher:    15    0%    2280
refresh_pattern .        15    20%    2280
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 to_localhost dst 127.0.0.0/8
acl SSL_ports port 443        # https
acl SSL_ports port 563        # snews
acl SSL_ports port 873        # rsync
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
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 631        # cups
acl Safe_ports port 873        # rsync
acl Safe_ports port 901        # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl redelocal src 10.10.5.0/24
acl downloads urlpath_regex -i "/etc/squid/downloads.txt"
acl proibidos url_regex "/etc/squid/proibidos.txt"
acl Negar_MSN dstdomain "/etc/squid/msn.txt"
acl Negar_MSN2 url_regex "/etc/squid/msn2.txt"
acl msn url_regex -i /gateway/gateway.dll
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 deny proibidos
http_access deny downloads
#http_access allow HOST_MSN
#http_access deny Negar_MSN
#http_access deny Negar_MSN2
#http_access deny msn
http_access allow redelocal
http_access allow localhost
http_access deny all
icp_access allow all
error_directory /usr/share/squid/errors/Portuguese

###################

Desde já Agradeço

Ricardo




Reply to: