- 论坛徽章:
- 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 ?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 ?t=0&q=squid&p=0&pn=1"
2007/08/27 13:09:28| httpReadReply: Excess data from "GET ?t=0&q=squid+%D2%EC%B3%A3&p=0&pn=1"
2007/08/27 13:13:19| comm_select: select failure: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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: (1003 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 编辑 ] |
|