免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2740 | 回复: 0
打印 上一主题 下一主题

[proxy] squid 2.7 ubuntu 10.10 代理服务器 代理一段时间出现找不到网页 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-16 00:11 |只看该作者 |倒序浏览
流量就我一个在试验
配置如下:
  1. icp_port 0
  2. http_port 8080
  3. visible_hostname ProxyServer
  4. cache_mgr webmaster@test.com
  5. cache_mem 32 MB
  6. cache_swap_low 90
  7. cache_swap_high 95
  8. #cache_dir ufs /var/spool/var/cache 800016 256
  9. coredump_dir /var/spool/squid 8000 16 2560
  10. hierarchy_stoplist cgi-bin ?
  11. hierarchy_stoplist -i ^https:\\ ?
  12. acl QUERY urlpath_regex -i cgi-bin \? \.asp \.php \.jsp \.cgi
  13. acl denyssl urlpath_regex -i ^https:\\
  14. no_cache deny QUERY
  15. no_cache deny denyssl
  16. ipcache_size 1024
  17. ipcache_low 90
  18. ipcache_high 95
  19. fqdncache_size 1024
  20. access_log /var/log/squid/access.log squid
  21. dns_nameservers 72.14.179.5
  22. acl all src 0.0.0.0/0.0.0.0
  23. acl allow_lan src 192.168.1.0/24
  24. no_cache deny all
  25. http_access allow all
  26. http_access deny all
  27. header_access Via deny all
  28. header_access Server deny all
  29. header_access X-Cache deny all
  30. header_access X-Cache-Lookup deny all
  31. httpd_suppress_version_string off
  32. forwarded_for off
  33. header_access All allow all
  34. connect_timeout 10 seconds
复制代码
mgr:info 信息如下
  1. HTTP/1.0 200 OK
  2. Date: Tue, 15 Mar 2011 16:09:45 GMT
  3. Content-Type: text/plain
  4. Expires: Tue, 15 Mar 2011 16:09:45 GMT
  5. Connection: close

  6. Squid Object Cache: Version 2.7.STABLE9
  7. Start Time:     Tue, 15 Mar 2011 15:40:07 GMT
  8. Current Time:   Tue, 15 Mar 2011 16:09:45 GMT
  9. Connection information for squid:
  10.         Number of clients accessing cache:      2
  11.         Number of HTTP requests received:       626
  12.         Number of ICP messages received:        0
  13.         Number of ICP messages sent:    0
  14.         Number of queued ICP replies:   0
  15.         Number of HTCP messages received:       0
  16.         Number of HTCP messages sent:   0
  17.         Request failure ratio:   0.00
  18.         Average HTTP requests per minute since start:   21.1
  19.         Average ICP messages per minute since start:    0.0
  20.         Select loop called: 11223 times, 158.419 ms avg
  21. Cache information for squid:
  22.         Request Hit Ratios:     5min: 0.0%, 60min: 0.0%
  23.         Byte Hit Ratios:        5min: 100.0%, 60min: -7.9%
  24.         Request Memory Hit Ratios:      5min: 0.0%, 60min: 0.0%
  25.         Request Disk Hit Ratios:        5min: 0.0%, 60min: 0.0%
  26.         Storage Swap size:      0 KB
  27.         Storage Mem size:       108 KB
  28.         Mean Object Size:       0.00 KB
  29.         Requests given to unlinkd:      0
  30. Median Service Times (seconds)  5 min    60 min:
  31.         HTTP Requests (All):   0.00000  0.16775
  32.         Cache Misses:          0.00000  0.16775
  33.         Cache Hits:            0.00000  0.00000
  34.         Near Hits:             0.00000  0.00000
  35.         Not-Modified Replies:  0.00000  0.00000
  36.         DNS Lookups:           0.00000  0.03532
  37.         ICP Queries:           0.00000  0.00000
  38. Resource usage for squid:
  39.         UP Time:        1777.935 seconds
  40.         CPU Time:       0.433 seconds
  41.         CPU Usage:      0.02%
  42.         CPU Usage, 5 minute avg:        0.00%
  43.         CPU Usage, 60 minute avg:       0.02%
  44.         Process Data Segment Size via sbrk(): 4388 KB
  45.         Maximum Resident Size: 24640 KB
  46.         Page faults with physical i/o: 0
  47. Memory usage for squid via mallinfo():
  48.         Total space in arena:    4388 KB
  49.         Ordinary blocks:         2976 KB     31 blks
  50.         Small blocks:               0 KB      0 blks
  51.         Holding blocks:           280 KB      1 blks
  52.         Free Small blocks:          0 KB
  53.         Free Ordinary blocks:    1411 KB
  54.         Total in use:            3256 KB 70%
  55.         Total free:              1411 KB 30%
  56.         Total size:              4668 KB
  57. Memory accounted for:
  58.         Total accounted:         1052 KB
  59.         memPoolAlloc calls: 73447
  60.         memPoolFree calls: 72574
  61. File descriptor usage for squid:
  62.         Maximum number of file descriptors:   1024
  63.         Largest file desc currently in use:     13
  64.         Number of file desc currently in use:   10
  65.         Files queued for open:                   0
  66.         Available number of file descriptors: 1014
  67.         Reserved number of file descriptors:   100
  68.         Store Disk files open:                   0
  69.         IO loop method:                     epoll
  70. Internal Data Structures:
  71.             27 StoreEntries
  72.             27 StoreEntries with MemObjects
  73.             26 Hot Object Cache Items
  74.              0 on-disk objects
复制代码
各位大大 帮忙看看 我找了快晕了

在本地没有那个问题

架在公网上就出现这个 client 到代理proxy 大约300ms的延迟
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP