做个补充,不同版本的docker的usage计算机制不同:
# On cgroup v1 host, the result is
docker stats=mem.Usage - mem.Stats["total_inactive_file"]
# On cgroup v2 host, the result is
docker stats=mem.Usage - mem.Stats["inactive_file"]
# On Docker 19.03 and older, the result was
docker stats=mem.Usage - mem.Stats["cache"]
容器内存监控,是看rss还是wss?问题 cadvisor提供了多个容器内存相关的指标,其中最重要的是以下几个: (From https://help.aliyun.com/document_detail/41...