亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 5542 | 回復(fù): 11
打印 上一主題 下一主題

squid速度變慢怎么解決? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2005-09-04 23:40 |只看該作者 |倒序?yàn)g覽
我用squid做了代理服務(wù)器,但隔一段時(shí)間(有時(shí)十多分鐘),客戶端訪問就變得很慢.登陸服務(wù)器后把squid重新啟動(dòng)一下又恢得正常,怎么解決這種問題呢?謝謝!

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2005-09-04 23:44 |只看該作者

squid速度變慢怎么解決?

看看 cache.log

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2005-09-04 23:57 |只看該作者

squid速度變慢怎么解決?

平時(shí)我也沒有啟用logs,這是cache.log顯示的

2005/09/04 23:53:04| Starting Squid Cache version 2.5.STABLE6 for i686-pc-linux-gnu...
2005/09/04 23:53:04| Process ID 1912
2005/09/04 23:53:04| With 1024 file descriptors available
2005/09/04 23:53:04| Performing DNS Tests...
2005/09/04 23:53:04| Successful DNS name lookup tests...
2005/09/04 23:53:04| DNS Socket created at 0.0.0.0, port 32774, FD 4
2005/09/04 23:53:04| Adding nameserver 61.128.128.68 from /etc/resolv.conf
2005/09/04 23:53:04| Adding nameserver 218.201.4.3 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 302
2005/09/04 23:53:07| Starting Squid Cache version 2.5.STABLE6 for i686-pc-linux-gnu...
2005/09/04 23:53:07| Process ID 1915
2005/09/04 23:53:07| With 1024 file descriptors available
2005/09/04 23:53:07| Performing DNS Tests...
2005/09/04 23:53:07| Successful DNS name lookup tests...
2005/09/04 23:53:07| DNS Socket created at 0.0.0.0, port 32774, FD 4
2005/09/04 23:53:07| Adding nameserver 61.128.128.68 from /etc/resolv.conf
2005/09/04 23:53:07| Adding nameserver 218.201.4.3 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 302
2005/09/04 23:53:10| Starting Squid Cache version 2.5.STABLE6 for i686-pc-linux-gnu...
2005/09/04 23:53:10| Process ID 1919
2005/09/04 23:53:10| With 1024 file descriptors available
2005/09/04 23:53:10| Performing DNS Tests...
2005/09/04 23:53:10| Successful DNS name lookup tests...
2005/09/04 23:53:10| DNS Socket created at 0.0.0.0, port 32774, FD 4
2005/09/04 23:53:10| Adding nameserver 61.128.128.68 from /etc/resolv.conf
2005/09/04 23:53:10| Adding nameserver 218.201.4.3 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.000 user + 0.010 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 302
2005/09/04 23:53:13| Starting Squid Cache version 2.5.STABLE6 for i686-pc-linux-gnu...
2005/09/04 23:53:13| Process ID 1922
2005/09/04 23:53:13| With 1024 file descriptors available
2005/09/04 23:53:13| Performing DNS Tests...
2005/09/04 23:53:13| Successful DNS name lookup tests...
2005/09/04 23:53:13| DNS Socket created at 0.0.0.0, port 32774, FD 4
2005/09/04 23:53:13| Adding nameserver 61.128.128.68 from /etc/resolv.conf
2005/09/04 23:53:13| Adding nameserver 218.201.4.3 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 302
2005/09/04 23:53:16| Starting Squid Cache version 2.5.STABLE6 for i686-pc-linux-gnu...
2005/09/04 23:53:16| Process ID 1925
2005/09/04 23:53:16| With 1024 file descriptors available
2005/09/04 23:53:16| Performing DNS Tests...
2005/09/04 23:53:16| Successful DNS name lookup tests...
2005/09/04 23:53:16| DNS Socket created at 0.0.0.0, port 32774, FD 4
2005/09/04 23:53:16| Adding nameserver 61.128.128.68 from /etc/resolv.conf
2005/09/04 23:53:16| Adding nameserver 218.201.4.3 from /etc/resolv.conf
FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing.
        The parent directory must be writeable by the
        user 'nobody', which is the cache_effective_user
        set in squid.conf.
Squid Cache (Version 2.5.STABLE6): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.010 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 302

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2005-09-04 23:58 |只看該作者

squid速度變慢怎么解決?

如果把cache做在ramdisk里,性能會(huì)好些嗎?

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2005-09-05 18:00 |只看該作者

squid速度變慢怎么解決?

問題基本解決了,是dnsserver在作怪,我重新編譯了squid.不再出現(xiàn)這種情況.

http://numen.cqeda.com/


我用squid作的反向代理.

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2005-09-05 18:05 |只看該作者

squid速度變慢怎么解決?

說說是如何看出 dnsserver 作怪的?
重新編譯為何就解決了?

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2005-09-05 18:16 |只看該作者

squid速度變慢怎么解決?

我自己編譯的squid,默認(rèn)編譯的,做的反向透明代理.因?yàn)長AN內(nèi)還有幾臺(tái)WEB服務(wù)器.但在/usr/local/squid/libexec 下沒有dnsserver文件.
配置dns_children 5 后顯示出錯(cuò)信息.

我看了一下squid.conf文檔. 編譯squid時(shí)要加上--disable-internal-dns選項(xiàng),這樣安裝后的squid才能使用dns_children這項(xiàng)

重新編譯配置后就正常了.
感謝各位兄弟!!

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2005-09-05 18:25 |只看該作者

squid速度變慢怎么解決?

但如果 dns 請求過多, 5 條就遠(yuǎn)遠(yuǎn)不夠了
如果設(shè)置 dnsserver 數(shù)量過大,進(jìn)程里會(huì)有 N 個(gè)這東西,很可怕的

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2005-09-05 18:38 |只看該作者

squid速度變慢怎么解決?

我記得以前我編譯squid時(shí)  怎么也啟動(dòng)不了它
后面發(fā)現(xiàn)它是在啟動(dòng)的時(shí)候打DNS服務(wù)器
后我來加了一個(gè)-D選項(xiàng)   就讓它啟動(dòng)起來了

這種情況如何在編譯的時(shí)候克服啊?

謝謝

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2005-09-05 19:57 |只看該作者

squid速度變慢怎么解決?

近來發(fā)現(xiàn)我們的squid代理服務(wù)器在周六周日訪問量小的時(shí)候出現(xiàn)上述問題,訪問外部很慢,重起后能正常一段時(shí)間,小于20分鐘。
凡是正常上班時(shí)間倒是還沒遇到類似的問題。有時(shí)間俺也去看看那些紀(jì)錄文件。
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP