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

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

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3465 | 回復(fù): 3
打印 上一主題 下一主題

[proxy] 那為兄弟幫忙看看這個squid問題。 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2007-05-15 10:32 |只看該作者 |倒序?yàn)g覽
squid的cache_log里面的日志如下:

CPU Usage: 0.033 seconds = 0.020 user + 0.013 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
        total space in arena:    3976 KB
        Ordinary blocks:         3896 KB      2 blks
        Small blocks:               0 KB      1 blks
        Holding blocks:          2292 KB      2 blks
        Free Small blocks:          0 KB
        Free Ordinary blocks:      79 KB
        Total in use:            6188 KB 99%
        Total free:                79 KB 1%
2007/05/14 12:12:44| Starting Squid Cache version 2.6.STABLE12 for i686-pc-linux-gnu...
2007/05/14 12:12:44| Process ID 25063
2007/05/14 12:12:44| With 1024 file descriptors available
2007/05/14 12:12:44| Using epoll for the IO loop
2007/05/14 12:12:44| Performing DNS Tests...
2007/05/14 12:12:44| Successful DNS name lookup tests...
2007/05/14 12:12:44| DNS Socket created at 0.0.0.0, port 49496, FD 5
2007/05/14 12:12:44| Adding nameserver 61.155.43.208 from squid.conf
2007/05/14 12:12:44| helperOpenServers: Starting 10 'redir.pl' processes
2007/05/14 12:12:44| Unlinkd pipe opened on FD 19
2007/05/14 12:12:44| Swap maxSize 134217728 KB, estimated 10324440 objects
2007/05/14 12:12:44| Target number of buckets: 516222
2007/05/14 12:12:44| Using 524288 Store buckets
2007/05/14 12:12:44| Max Mem  size: 1048576 KB
2007/05/14 12:12:44| Max Swap size: 134217728 KB
2007/05/14 12:12:44| Store logging disabled
2007/05/14 12:12:44| Rebuilding storage in /home/cache (DIRTY)
2007/05/14 12:12:44| Using Least Load store dir selection
2007/05/14 12:12:44| Set Current Directory to /home/cache
2007/05/14 12:12:44| Loaded Icons.
2007/05/14 12:12:44| Accepting transparently proxied HTTP connections at 0.0.0.0, port 80, FD 22.
2007/05/14 12:12:44| Accepting SNMP messages on port 3401, FD 23.
2007/05/14 12:12:44| WCCP Disabled.
2007/05/14 12:12:44| Ready to serve requests.
2007/05/14 12:12:44| Store rebuilding is  0.4% complete
2007/05/14 12:12:54| Done reading /home/cache swaplog (936588 entries)
2007/05/14 12:12:54| Finished rebuilding storage from disk.
2007/05/14 12:12:54|    724164 Entries scanned
2007/05/14 12:12:54|         0 Invalid entries.
2007/05/14 12:12:54|         0 With invalid flags.
2007/05/14 12:12:54|    721498 Objects loaded.
2007/05/14 12:12:54|         0 Objects expired.
2007/05/14 12:12:54|    199362 Objects cancelled.
2007/05/14 12:12:54|      2190 Duplicate URLs purged.
2007/05/14 12:12:54|       476 Swapfile clashes avoided.
2007/05/14 12:12:54|   Took 10.3 seconds (70181.6 objects/sec).
2007/05/14 12:12:54| Beginning Validation Procedure
2007/05/14 12:12:54|    262144 Entries Validated so far.
2007/05/14 12:12:54|   Completed Validation Procedure
2007/05/14 12:12:54|   Validated 522134 Entries
2007/05/14 12:12:54|   store_swap_size = 46136168k
2007/05/14 12:12:55| storeLateRelease: released 174 objects
2007/05/14 12:19:42| WARNING: 1 swapin MD5 mismatches
2007/05/14 12:19:54| WARNING: 10 swapin MD5 mismatches
2007/05/14 12:25:38| squidaio_queue_request: WARNING - Queue congestion
2007/05/14 12:43:43| squidaio_queue_request: WARNING - Queue congestion
2007/05/14 13:18:00| squidaio_queue_request: WARNING - Queue congestion
2007/05/14 13:28:11| parseHttpRequest: Unsupported method ':37:38'
2007/05/14 13:28:11| clientReadRequest: FD 31 (222.178.216.164:22482) Invalid Request
2007/05/14 14:09:49| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:09:54| WARNING: All url_rewriter processes are busy.
2007/05/14 14:09:54| WARNING: up to 10 pending requests queued
2007/05/14 14:14:18| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:14:34| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:14:38| WARNING: All url_rewriter processes are busy.
2007/05/14 14:14:38| WARNING: up to 28 pending requests queued
2007/05/14 14:14:38| Consider increasing the number of url_rewriter processes to at least 38 in your config file.
2007/05/14 14:22:36| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:22:41| WARNING: All url_rewriter processes are busy.
2007/05/14 14:22:41| WARNING: up to 48 pending requests queued
2007/05/14 14:22:52| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:23:01| squidaio_queue_request: WARNING - Queue congestion
2007/05/14 14:33:05| WARNING! Your cache is running out of filedescriptors
2007/05/14 14:33:06| WARNING: All url_rewriter processes are busy.
2007/05/14 14:33:06| WARNING: up to 27 pending requests queued
2007/05/14 14:33:21| WARNING! Your cache is running out of filedescriptors



這些日志一出現(xiàn),速度就很慢。。。



在官方也沒有找到解決的辦法。那問兄弟遇到這重情況。幫忙分析一下。是那里問題。

論壇徽章:
0
2 [報告]
發(fā)表于 2007-05-15 11:50 |只看該作者
WARNING! Your cache is running out of filedescriptors

超過文件連接數(shù),所以會出現(xiàn)問題

1,ulimit -HSn 10240
2,編譯squid
3,運(yùn)行squid,這樣squid的文件描述符就變成10240了

但這樣有個問題就是重啟,文件描述符就會失效,所以

vi /etc/rc.local,加入

ulimit -HSn 10240
/dir/squid/sbin/squid -N &  #啟動squid

這樣就行了,如果需要手動啟動squid,請
vi /root/.bashrc添加
ulimit -HSn 10240

這樣每次以root身份登陸后,環(huán)境的文件描述符就變成10240了,然后手動啟動squid,squid的文件描述符就也是10240了

論壇徽章:
0
3 [報告]
發(fā)表于 2007-05-31 17:19 |只看該作者
liuhanzhao兄,謝謝了。

論壇徽章:
0
4 [報告]
發(fā)表于 2007-06-01 17:10 |只看該作者

debian 下安裝的squid

我是在debian下安裝的sqiud,配置完成后squid啟用的是80端口,apache啟用的是81端口。

squid和apache的端口都已經(jīng)啟用。


但是訪問的時候,訪問頁面無法顯示,squid的errorlog里會有
WARNING! Your cache is running out of filedescriptors
這樣的警告。然后查看netstat -an |grep 80 |wc -l

937個鏈接

是在測試機(jī)上的,不可能有這么多鏈接
查看后發(fā)現(xiàn)
都是
192.168.0.200:****   192.168.0.200:80
本機(jī)的一些端口鏈接本機(jī)的80端口。


有哪位大俠能告訴我怎么解決這個問題嗎?
您需要登錄后才可以回帖 登錄 | 注冊

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

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP