Interview practice question
Profiling a CPU-hungry container in production
Cloud & DevOps · Docker · Experienced
A production container uses far more CPU than expected, and its image contains no debugging tools. How do you profile it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- docker stats/top to confirm.
- Profile from host: perf, nsenter into namespaces.
- Ephemeral debug container sharing PID namespace.
- Language profilers (async-profiler, py-spy).
- Check CPU throttling vs real usage.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.