[GH-ISSUE #1231] 内存统计显示不正确 #2526

Closed
opened 2026-02-27 12:23:32 +03:00 by kerem · 0 comments
Owner

Originally created by @gang929 on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1231

在主机上用free 命令显示 为
XXXX:~# free
total used free shared buff/cache available
Mem: 8131956 919524 3721500 85052 3887004 7212432

而在Nginx UI的dashboard中显示的内存为 523M.

估计是因为 nginx所使用的used算法是 total - free - buff/cache
而 free 命令的算法是 total - available

Originally created by @gang929 on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1231 在主机上用free 命令显示 为 XXXX:~# free total used free shared buff/cache available Mem: 8131956 919524 3721500 85052 3887004 7212432 而在Nginx UI的dashboard中显示的内存为 523M. 估计是因为 nginx所使用的used算法是 total - free - buff/cache 而 free 命令的算法是 total - available
kerem 2026-02-27 12:23:32 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#2526
No description provided.