简体   繁体   English

使用更多 memory 然后容器 itslef 处理

[英]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.

相关问题 Prometheus 监控 Kubernetes 容器内存使用情况并报告容器使用情况是否超过 90% - Prometheus monitoring Kubernetes Container Memory usage and report if container using more than 90% Windows 容器内的物理 memory 限制,带进程隔离 - Physical memory limits inside Windows container with process isolation 容器如何使用超过限制的内存? - How does the container use more memory than the limit? Kubernetes Pod 报告的内存使用量比实际进程消耗量多 - Kubernetes Pod reporting more memory usage than actual process consumption 使用 containerd 为容器创建同级进程 - Creating a sibling process to a container using containerd container_memory_working_set_bytes 和 process_resident_memory_bytes 和 total_rss 之间的关系 - relationship between container_memory_working_set_bytes and process_resident_memory_bytes and total_rss 如何让 Python 进程使用所有 Docker 容器内存而不会被杀死? - How to let a Python process use all Docker container memory without getting killed? 无法启动容器:进程被终止 - Cannot start container: process is killed Kubernetes消耗更多内存,为什么? - Kubernetes consumes more memory, why? 容器上的“container_memory_working_set_bytes”和“container_memory_rss”指标有什么区别 - What is the difference between “container_memory_working_set_bytes” and “container_memory_rss” metric on the container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM