恐慌内存不足和Linux OOM Killer之间是否有关系?

huangapple go评论79阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2021年12月3日 19:50:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/70213848.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定