歡迎您光臨本站 註冊首頁

異常終止[已解決]

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

異常終止[已解決]

高手幫忙看看問題出在哪裡? 剛學配置一台squid代理伺服器(for windows),只要客戶端一次打開多個網頁(5)個左右,請會出現squid的異常終止,等1分鐘后又可重新啟動squid. 伺服器配置雙CUP,內存4G,SCSI硬碟.




配置也很簡單 squid.conf 配置文件:

http_port 80           
visible_hostname FIRST-DOME
cache_dir ufs h:/Main_cache 18888 16 256
cache_mem 2048 MB
cache_swap_low 80
cache_swap_high 97
acl all src 0.0.0.0/0.0.0.0
http_access allow all




Cache.log 記錄如下:

2007/08/27 13:05:04| Starting Squid Cache version 2.6.STABLE14 for i686-pc-winnt...
2007/08/27 13:05:04| Running as Squid Windows System Service on Windows Server 2003
2007/08/27 13:05:04| Service command line is:
2007/08/27 13:05:04| Process ID 2064
2007/08/27 13:05:04| With 2048 file descriptors available
2007/08/27 13:05:04| With 2048 CRT stdio descriptors available
2007/08/27 13:05:04| Windows sockets initialized
2007/08/27 13:05:04| Using select for the IO loop
2007/08/27 13:05:04| Performing DNS Tests...
2007/08/27 13:05:04| Successful DNS name lookup tests...
2007/08/27 13:05:04| DNS Socket created at 0.0.0.0, port 4291, FD 5
2007/08/27 13:05:04| Adding nameserver 202.96.128.68 from Registry
2007/08/27 13:05:04| Adding nameserver 202.96.128.86 from Registry
2007/08/27 13:05:04| Adding nameserver 192.168.0.165 from Registry
2007/08/27 13:05:04| Adding nameserver 192.168.0.164 from Registry
2007/08/27 13:05:04| User-Agent logging is disabled.
2007/08/27 13:05:04| Referer logging is disabled.
2007/08/27 13:05:04| Unlinkd pipe opened on FD 7
2007/08/27 13:05:04| Swap maxSize 19341312 KB, estimated 1487793 objects
2007/08/27 13:05:04| Target number of buckets: 74389
2007/08/27 13:05:04| Using 131072 Store buckets
2007/08/27 13:05:04| Max Mem  size: 2097152 KB
2007/08/27 13:05:04| Max Swap size: 19341312 KB
2007/08/27 13:05:04| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2007/08/27 13:05:04| Rebuilding storage in h:/Main_cache (CLEAN)
2007/08/27 13:05:04| Using Least Load store dir selection
2007/08/27 13:05:04| Current Directory is C:\squid\sbin
2007/08/27 13:05:04| Loaded Icons.
2007/08/27 13:05:04| Accepting proxy HTTP connections at 0.0.0.0, port 8008, FD 13.
2007/08/27 13:05:04| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2007/08/27 13:05:04| Accepting HTCP messages on port 4827, FD 15.
2007/08/27 13:05:04| Accepting SNMP messages on port 3401, FD 16.
2007/08/27 13:05:04| Ready to serve requests.
2007/08/27 13:05:04| Done reading h:/Main_cache swaplog (2071 entries)
2007/08/27 13:05:04| Finished rebuilding storage from disk.
2007/08/27 13:05:04|      2071 Entries scanned
2007/08/27 13:05:04|         0 Invalid entries.
2007/08/27 13:05:04|         0 With invalid flags.
2007/08/27 13:05:04|      2071 Objects loaded.
2007/08/27 13:05:04|         0 Objects expired.
2007/08/27 13:05:04|         0 Objects cancelled.
2007/08/27 13:05:04|         0 Duplicate URLs purged.
2007/08/27 13:05:04|         0 Swapfile clashes avoided.
2007/08/27 13:05:04|   Took 0.3 seconds (7370.1 objects/sec).
2007/08/27 13:05:04| Beginning Validation Procedure
2007/08/27 13:05:04|   Completed Validation Procedure
2007/08/27 13:05:04|   Validated 2071 Entries
2007/08/27 13:05:04|   store_swap_size = 35328k
2007/08/27 13:05:05| storeLateRelease: released 0 objects
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 1
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 2
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 3
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 4
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 5
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 6
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 7
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 8
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 9
2007/08/27 13:06:56| comm_select: select failure: (10055) WSAENOBUFS, No buffer space available.
2007/08/27 13:06:56| Select loop Error. Retry 10
FATAL: Select Loop failed!
Squid Cache (Version 2.6.STABLE14): Terminated abnormally.
CPU Usage: 0.422 seconds = 0.172 user + 0.250 sys
Maximum Resident Size: 10780 KB
Page faults with physical i/o: 3225
2007/08/27 13:06:56| storeDirWriteCleanLogs: Starting...
2007/08/27 13:06:56| WARNING: Closing open FD   13
2007/08/27 13:06:56|   Finished.  Wrote 2084 entries.
2007/08/27 13:06:56|   Took 0.0 seconds (2084.0 entries/sec).
2007/08/27 13:07:56| Starting Squid Cache version 2.6.STABLE14 for i686-pc-winnt...
2007/08/27 13:07:56| Running as Squid Windows System Service on Windows Server 2003
2007/08/27 13:07:56| Service command line is:
2007/08/27 13:07:56| Process ID 3476
2007/08/27 13:07:56| With 2048 file descriptors available
2007/08/27 13:07:56| With 2048 CRT stdio descriptors available
2007/08/27 13:07:56| Windows sockets initialized
2007/08/27 13:07:56| Using select for the IO loop
2007/08/27 13:07:56| Performing DNS Tests...
2007/08/27 13:07:56| Successful DNS name lookup tests...
2007/08/27 13:07:56| DNS Socket created at 0.0.0.0, port 4407, FD 5
2007/08/27 13:07:56| Adding nameserver 202.96.128.68 from Registry
2007/08/27 13:07:56| Adding nameserver 202.96.128.86 from Registry
2007/08/27 13:07:56| Adding nameserver 192.168.0.165 from Registry
2007/08/27 13:07:56| Adding nameserver 192.168.0.164 from Registry
2007/08/27 13:07:56| User-Agent logging is disabled.
2007/08/27 13:07:56| Referer logging is disabled.
2007/08/27 13:07:56| Unlinkd pipe opened on FD 7
2007/08/27 13:07:56| Swap maxSize 19341312 KB, estimated 1487793 objects
2007/08/27 13:07:56| Target number of buckets: 74389
2007/08/27 13:07:56| Using 131072 Store buckets
2007/08/27 13:07:56| Max Mem  size: 2097152 KB
2007/08/27 13:07:56| Max Swap size: 19341312 KB
2007/08/27 13:07:56| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2007/08/27 13:07:56| Rebuilding storage in h:/Main_cache (CLEAN)
2007/08/27 13:07:56| Using Least Load store dir selection
2007/08/27 13:07:56| Current Directory is C:\squid\sbin
2007/08/27 13:07:56| Loaded Icons.
2007/08/27 13:07:56| Accepting proxy HTTP connections at 0.0.0.0, port 8008, FD 13.
2007/08/27 13:07:56| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2007/08/27 13:07:56| Accepting HTCP messages on port 4827, FD 15.
2007/08/27 13:07:56| Accepting SNMP messages on port 3401, FD 16.
2007/08/27 13:07:56| Ready to serve requests.
2007/08/27 13:07:56| Done reading h:/Main_cache swaplog (2084 entries)
2007/08/27 13:07:56| Finished rebuilding storage from disk.
2007/08/27 13:07:56|      2084 Entries scanned
2007/08/27 13:07:56|         0 Invalid entries.
2007/08/27 13:07:56|         0 With invalid flags.
2007/08/27 13:07:56|      2084 Objects loaded.
2007/08/27 13:07:56|         0 Objects expired.
2007/08/27 13:07:56|         0 Objects cancelled.
2007/08/27 13:07:56|         0 Duplicate URLs purged.
2007/08/27 13:07:56|         0 Swapfile clashes avoided.
2007/08/27 13:07:56|   Took 0.3 seconds (7834.6 objects/sec).
2007/08/27 13:07:56| Beginning Validation Procedure
2007/08/27 13:07:56|   Completed Validation Procedure
2007/08/27 13:07:56|   Validated 2084 Entries
2007/08/27 13:07:56|   store_swap_size = 35452k
2007/08/27 13:07:57| storeLateRelease: released 0 objects
2007/08/27 13:08:54| httpReadReply: Excess data from "GET http://c.baidu.com/c.gif?t=0&q=SQUID+%BE%AD%B3%A3%D7%D4%B6%AF%CD%A3%D6%B9&p=0&pn=1"
2007/08/27 13:09:10| httpReadReply: Excess data from "GET http://c.baidu.com/c.gif?t=0&q=squid&p=0&pn=1"
2007/08/27 13:09:28| httpReadReply: Excess data from "GET http://c.baidu.com/c.gif?t=0&q=squid+%D2%EC%B3%A3&p=0&pn=1"
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 1
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 2
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 3
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 4
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 5
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 6
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 7
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 8
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 9
2007/08/27 13:13:19| comm_select: select failure: (10038) WSAENOTSOCK, Socket operation on nonsocket.
2007/08/27 13:13:19| Select loop Error. Retry 10
FATAL: Select Loop failed!
Squid Cache (Version 2.6.STABLE14): Terminated abnormally.
CPU Usage: 0.391 seconds = 0.141 user + 0.250 sys
Maximum Resident Size: 10648 KB

[ 本帖最後由 GDSoftware 於 2007-8-29 13:40 編輯 ]
《解決方案》

問題已經解決。與SQUID無關,是操作系統問題。註冊表中修改增大HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Sub Systems\Windows SharedSection的值。
《解決方案》

還真有人在Windows上跑squid阿?
《解決方案》

linux + apache 都跑 asp了, win不能跑 squid 啊

[火星人 ] 異常終止[已解決]已經有720次圍觀

http://coctec.com/docs/service/show-post-36026.html