[英]Process using more memory then container itslef
can it be that process inside container used more memory then the container itself?难道是容器内的进程使用了更多的 memory 然后容器本身?
i have a pod with single container, that based on stackdriver graphs uses 1.6G memory at his peak.我有一个带有单个容器的 pod,它基于堆栈驱动程序图在他的峰值使用 1.6G memory。 at the same time, i saw an error on the container and while looking the root casue i saw on the VM itself oom-killer message that indicate one of the processes inside the container killed due to usage of 2.2G.
同时,我在容器上看到了一个错误,在查看根本原因时,我在 VM 本身上看到了 oom-killer 消息,表明容器内的一个进程由于使用 2.2G 而被杀死。 (rss)
(rss)
how can it be?怎么会这样?
Memory cgroup out of memory: Killed process 2076205 (chrome) total-vm:4718012kB, anon-rss:2190464kB, file-rss:102640kB, shmem-rss:0kB, UID:1001 pgtables:5196kB oom_score_adj:932
10x! 10倍!
Two pieces.两片。 First what you see in the metrics is probably the working set size, which does not include buffers while I think the oom_killer shows rss which does.
首先,您在指标中看到的可能是工作集大小,它不包括缓冲区,而我认为 oom_killer 显示 rss 有。 But more importantly, the data in metrics output is sampled, usually every 30 seconds.
但更重要的是,对指标 output 中的数据进行采样,通常每 30 秒一次。 So if the memory usage spiked suddenly, or even if it just tried to allocate one huge buffer, then it would be killed.
因此,如果 memory 的使用量突然飙升,或者即使它只是试图分配一个巨大的缓冲区,它也会被杀死。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.