SpinTheMic
Pro

Interview practice question

Go service memory higher than its heap

Backend Engineering · Language Runtimes · Intermediate

Your Go service's container memory usage is far above what its heap profile shows, and it occasionally gets OOM-killed. What could be happening?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • GC lets heap grow to 2× live by default.
  • Runtime returns memory lazily.
  • Goroutine stacks, cgo allocations.
  • Set GOMEMLIMIT below container limit.
  • Profile heap and goroutines.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics