2656 questions · 63 companies · 53 topics
DevOps exercises &
interview questions
Read a real interview question, write your answer, then reveal the solution.
Detect a memory leak by watching RSS
AnswerSort processes by resident memory, watch the node process's RSS climb over time, then kill it.
Solution
ps -eo pid,rss,comm --sort=-rss | head → re-sample to confirm RSS keeps growing (a leak, not a spike) → kill <pid>