centos6.7下运行squid

小小家伙 发布于 2016/01/12 12:08
阅读 589
收藏 0

squid配置信息:

http_port 80 accel vhost 
http_access allow all
cache_peer x.x.x.x parent 80 0 originserver round-robin weight=1  
cache_peer x.x.x.x parent 80 0 originserver round-robin weight=1
cache_mem 21000 MB   
refresh_pattern . 0 50% 4320 ignore-reload   
maximum_object_size_in_memory 128000 KB  
maximum_object_size   12800 KB   
acl OverConnLimit maxconn 16        
http_access deny OverConnLimit
cache_dir ufs /squid/cache/ 1000 16 256
acl picurl url_regex -i \.bmp$ \.png$ \.jpg$ \.gif$ \.jpeg$
acl mystie1 referer_regex -i happy.swjtu.edu.cn
http_access allow mystie1 picurl
acl nullref referer_regex -i ^$
http_access allow nullref
acl hasref referer_regex -i .+
 acl  managercache   src x.x.x.x 127.0.0.1
  acl   Purge  method PURGE
  http_access allow  managercache Purge
  http_access  deny Purge
visible_hostname huancun-1
cache_mgr 1184903719@qq.com

squid运行信息:

HTTP/1.0 200 OK
Server: squid/3.1.23
Mime-Version: 1.0
Date: Tue, 12 Jan 2016 01:44:47 GMT
Content-Type: text/plain
Expires: Tue, 12 Jan 2016 01:44:47 GMT
Last-Modified: Tue, 12 Jan 2016 01:44:47 GMT
X-Cache: MISS from huancun-1
X-Cache-Lookup: MISS from huancun-1:80
Via: 1.0 huancun-1 (squid/3.1.23)
Connection: close


Squid Object Cache: Version 3.1.23
Start Time: Mon, 11 Jan 2016 11:29:40 GMT
Current Time: Tue, 12 Jan 2016 01:44:47 GMT
Connection information for squid:
Number of clients accessing cache: 9
Number of HTTP requests received: 607762
Number of ICP messages received: 0
Number of ICP messages sent: 0
Number of queued ICP replies: 0
Number of HTCP messages received: 0
Number of HTCP messages sent: 0
Request failure ratio: 0.00
Average HTTP requests per minute since start: 710.7
Average ICP messages per minute since start: 0.0
Select loop called: 12875924 times, 3.985 ms avg
Cache information for squid:
Hits as % of all requests: 5min: 49.3%, 60min: 48.6%
Hits as % of bytes sent: 5min: 61.9%, 60min: 61.0%
Memory hits as % of hit requests: 5min: 62.8%, 60min: 62.6%
Disk hits as % of hit requests: 5min: 0.1%, 60min: 0.0%
Storage Swap size: 940540 KB
Storage Swap capacity: 91.8% used,  8.2% free
Storage Mem size: 935056 KB
Storage Mem capacity: 4.4% used, 95.6% free
Mean Object Size: 24.52 KB
Requests given to unlinkd: 26987
Median Service Times (seconds)  5 min    60 min:
HTTP Requests (All):   0.01164  0.01164
Cache Misses:          0.04047  0.04047
Cache Hits:            0.00000  0.00000
Near Hits:             0.01035  0.00865
Not-Modified Replies:  0.00000  0.00000
DNS Lookups:           0.00000  0.00000
ICP Queries:           0.00000  0.00000
Resource usage for squid:
UP Time: 51307.321 seconds
CPU Time: 338.410 seconds
CPU Usage: 0.66%
CPU Usage, 5 minute avg: 14.04%
CPU Usage, 60 minute avg: 9.18%
Process Data Segment Size via sbrk(): 1122484 KB
Maximum Resident Size: 4525200 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
Total space in arena:  1122616 KB
Ordinary blocks:       1076220 KB  21817 blks
Small blocks:               0 KB      0 blks
Holding blocks:          2132 KB      5 blks
Free Small blocks:          0 KB
Free Ordinary blocks:   46395 KB
Total in use:          1078353 KB 96%
Total free:             46395 KB 4%
Total size:            1124748 KB
Memory accounted for:
Total accounted:       1035843 KB 92%
memPool accounted:     1035843 KB 92%
memPool unaccounted:    88905 KB 8%
memPoolAlloc calls: 142363842
memPoolFree calls:  142928780
File descriptor usage for squid:
Maximum number of file descriptors:   1024
Largest file desc currently in use:    939
Number of file desc currently in use:  819
Files queued for open:                   0
Available number of file descriptors:  205
Reserved number of file descriptors:   100
Store Disk files open:                   1
Internal Data Structures:
38746 StoreEntries
38746 StoreEntries with MemObjects
38377 Hot Object Cache Items
38351 on-disk objects

运行一段时间之后 就无法访问了 标红的部分运行一段时间就会变成负数,使用率负的百分之几百   

而且命中率太低了吧。。。。。。。

新手  刚开始用的squid  不懂什么意思  求高手指点一下。

加载中
返回顶部
顶部