{% extends "base.html" %} {% block title %}实时性能 - Squid Manager{% endblock %} {% block content %} {% if not summary.fetched_ok %}

⚠️ 无法获取 Squid 性能数据

错误信息: {{ summary.error or "未知错误" }}

请检查:

{% endif %}
运行时长
{{ summary.squid_uptime_human or "—" }}
Squid 版本 {{ summary.squid_version or "?" }}
CPU 时间
{{ summary.cpu_time_human or "—" }}
累计用户态+内核态
最大内存占用
{{ summary.max_rss_human or "—" }}
RSS 峰值
活跃客户端
{{ summary.current_clients if summary.current_clients is not none else "—" }}
正在访问缓存的 IP 数
缓存命中率
{% if summary.cache_hits_pct is not none %}{{ '%.1f' % summary.cache_hits_pct }}%{% else %}—{% endif %}
Hits as % of bytes sent
磁盘缓存
{{ summary.storage_swap_human or "—" }}
Storage Swap size
内存缓存
{{ summary.storage_mem_human or "—" }}
Storage Mem size
5min 请求率
{% if summary.request_rate_5min is not none %}{{ '%.1f' % summary.request_rate_5min }} req/s{% else %}—{% endif %}
流量: {% if summary.byte_rate_5min is not none %}{{ format_bytes(summary.byte_rate_5min) }}/s{% else %}—{% endif %}

🛰️ Squid 状态

启动时间 {{ summary.start_time or "—" }}
当前时间 {{ summary.current_time or "—" }}
作者信息 {{ summary.squid_author or "—" }}
采集状态 {% if summary.fetched_ok %} ✅ 成功 {% else %} ❌ 失败 {% endif %}
采集时间 {{ summary.fetched_at }}
采集源 {{ conn.host }}:{{ conn.port }}

🔍 原始输出 (可折叠)

查看 mgr:info 完整文本
{{ summary.raw_info or summary.error or "无数据" }}
查看 mgr:5min 完整文本 (懒加载)
点击展开后按需加载...
查看 mgr:counters 完整文本 (懒加载)
点击展开后按需加载...
{% endblock %} {% block scripts %} {% endblock %}