- 论坛徽章:
- 0
|
我安装完Squid之后刚开始的时候系统内存使用才80M左右.过了两三天内存使用为1.6G左右,到现在一个多星期了内存使用为1.9G多了
为什么啊?
我还有一台代理是4个G的内存开了不到三个小时内存就到3个多G了.
有什么参数可以控制一下吗?
我用的是
RHEL4-U5
Squid2.5 做的透明代理
bind 傻瓜DNS
其余的什么都没做.
服务器配置:
AMD4000+
内存2G
Squid 配置文件
visible_hostname route
http_port 192.168.1.254:3128
cache_mem 128 MB
cache_dir ufs /var/spool/squid 4096 16 256
cache_effective_user squid
cache_effective_group squid
dns_nameservers 211.147.6.3
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
acl all src 0.0.0.0/0.0.0.0
http_access allow all
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
top查看结果
top - 15:57:39 up 9 days, 3:57, 2 users, load average: 0.12, 0.03, 0.01
Tasks: 59 total, 2 running, 57 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.0% us, 2.7% sy, 0.0% ni, 96.0% id, 0.3% wa, 0.0% hi, 0.0% si
Mem: 1944860k total, 1939684k used, 5176k free, 150752k buffers
Swap: 2097144k total, 208k used, 2096936k free, 1408776k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4397 squid 15 0 199m 195m 1784 S 3.0 10.3 69:52.69 squid
3 root 5 -10 0 0 0 S 0.0 0.0 0:00.02 events/0
4 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
5 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
30 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
31 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
48 root 15 0 0 0 0 S 0.0 0.0 0:01.01 pdflush
49 root 15 0 0 0 0 S 0.0 0.0 0:01.10 pdflush
50 root 15 0 0 0 0 S 0.0 0.0 0:02.49 kswapd0
51 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
195 root 25 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
426 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
427 root 6 -10 0 0 0 S 0.0 0.0 0:00.00 ata_aux
429 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
430 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
431 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
432 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_3
457 root 16 0 0 0 0 S 0.0 0.0 0:00.03 kjournald
457 root 15 0 0 0 0 S 0.0 0.0 0:00.03 kjournald
|
|