英文:
Is there any relationship between panic out of memory and linux OOM killer?
问题
我想知道Go语言中的"out of memory"恐慌和Linux的OOM killer之间是否有关联。
如果存在内存泄漏,两者都可能发生吗?如果是这样,那么哪个会运行,它们又依赖于什么?
英文:
I am wondering if they are any relationship between panic "out of memory" in Go and Linux OOM killer.
Can both happen if memory leaks? If so then which one is run and what does it depend on?
答案1
得分: 4
“内存不足”是指进程超出了每个进程的限制,或者系统内存耗尽。只有当系统内存耗尽时,OOM killer才会被激活。内存泄漏可能是这类问题的原因之一,但并不是唯一可能的原因。
英文:
"out of memory" happens when the process exceeds the per-process limits or if the system runs out of memory. The OOM killer will be activated only if the system runs out of memory. Memory leaks can be the cause of such problems, but they are not the only possible cause.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论