高山linux:pmap输出不显示RSS [英] alpine linux: pmap output not showing RSS

查看:603
本文介绍了高山linux:pmap输出不显示RSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个docker容器运行一个高山linux的基本映像,当我执行docker容器并运行命令:


pmap -x [pid]


我在输出中看到的标题是:



地址Kbytes PSS脏交换模式映射



寻找RSS(居民集大小)。为什么这个标题没有显示在输出中?

解决方案

如果pmap不显示在该特定的docker图像中( Alpine ),检查 top 如果更完整在其输出中(如此主题):

  vagrant @ dockerdev:/ host / scratch / janus-gateway $ sudo docker run --name = mc_small --detach --publish = 11213:11211 --user =没有人ploxiln / memcached / bin / memcached -v -m 64 -c 1024 
11037b69acfbc0de7601831634751cd342a7bafe9a25749285bc2c2803cc1768
vagrant @ dockerdev:/ host / scratch / janus-gateway $ top c -b -n1 | grep'COMMAND\ | memcached'
PID USER PR NI VIRT RES SHR S%CPU%MEM TIME + COMMAND
5984 nobody 20 0 316960 1192 768 S 0.0 0.1 0:00.02 / usr / bin / memcached - v -m 64 -c 1024
6091 nobody 20 0 305256 780 412 S 0.0 0.0 0:00.00 / bin / memcached -v -m 64 -c 1024

RES 列将是REsident集大小。


I have a docker container running a base image of alpine linux and when I exec into the docker container and run the command:

pmap -x [pid]

The headers that I see in the output are:

Address Kbytes PSS Dirty Swap Mode Mapping

I am actually explicitly looking for RSS (Resident Set Size). Why is this header not showing up in the output?

解决方案

If pmap does not display it in that particular docker image (Alpine), check if top if more complete in its output (as in this thread):

vagrant@dockerdev:/host/scratch/janus-gateway$ sudo docker run --name=mc_small --detach --publish=11213:11211 --user=nobody ploxiln/memcached /bin/memcached -v -m 64 -c 1024
  11037b69acfbc0de7601831634751cd342a7bafe9a25749285bc2c2803cc1768
  vagrant@dockerdev:/host/scratch/janus-gateway$ top c -b -n1 | grep 'COMMAND\|memcached'
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
   5984 nobody    20   0  316960   1192    768 S   0.0  0.1   0:00.02 /usr/bin/memcached -v -m 64 -c 1024
   6091 nobody    20   0  305256    780    412 S   0.0  0.0   0:00.00 /bin/memcached -v -m 64 -c 1024

The RES column would be the REsident set Size.

这篇关于高山linux:pmap输出不显示RSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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