Squid缓存命中率查看
在C:\squid\bin目录下,新建一个bat文件,内容如下
@echo off
echo 开始......
squidclient -p 80 mgr:info
echo 完成!
echo. & pause
显示结果如下:
Request Hit Ratios: 5min: 80.1%, 60min: 80.3%
Byte Hit Ratios: 5min: 66.6%, 60min: 70.0%
Request Memory Hit Ratios: 5min: 30.3%, 60min: 32.6%
Request Disk Hit Ratios: 5min: 8.7%, 60min: 8.8%
Request Hit Ratios:表示第二次或者以后的请求时,发现它在缓存里面且有效,不然就从原始服务器读取
Byte Hit Ratios:顾名思义,字节数
Request Memory Hit Ratios:缓存在内存里面的东西
Request Disk Hit Ratios:这硬盘读取的
@echo off
echo 开始......
squidclient -p 80 mgr:info
echo 完成!
echo. & pause
显示结果如下:
Request Hit Ratios: 5min: 80.1%, 60min: 80.3%
Byte Hit Ratios: 5min: 66.6%, 60min: 70.0%
Request Memory Hit Ratios: 5min: 30.3%, 60min: 32.6%
Request Disk Hit Ratios: 5min: 8.7%, 60min: 8.8%
Request Hit Ratios:表示第二次或者以后的请求时,发现它在缓存里面且有效,不然就从原始服务器读取
Byte Hit Ratios:顾名思义,字节数
Request Memory Hit Ratios:缓存在内存里面的东西
Request Disk Hit Ratios:这硬盘读取的