Docker容器的内存使用 [英] Memory usage of Docker containers

查看:190
本文介绍了Docker容器的内存使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Docker来运行一些容器化的应用程序。我有兴趣测量他们消耗的资源(关于CPU和内存使用量)。



有没有办法衡量Docker容器如RAM的资源&安培; CPU使用率



谢谢。

解决方案

更新:阿德里安·穆阿特(Adrian Mouat)以下码头码头的回答现在支持 docker stats



没有办法在当前版本的Docker中进行此操作。未来的版本将通过api或插件来支持这一点。





看起来像一个lxc项目您应该可以使用它来跟踪CPU和内存。




I am using Docker to run some containerized apps. I am interested in measuring how much resources they consume (as far as regarding CPU and Memory usage).

Is there any way to measure the resources consumed by Docker containers like RAM & CPU usage?

Thank you.

解决方案

Update: See @Adrian Mouat's answer below as docker now supports docker stats!

There isn't a way to do this that's built into docker in the current version. Future versions will support this via an api or plugin.

It does look like there's an lxc project that you should be able to use to track CPU and Memory.

这篇关于Docker容器的内存使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆