A service running on G1 periodically has pauses of one to two seconds, and it's hurting latency. What would you do, and when is it worth looking at a different garbage collector?
~4 min by voice
How to approach it
This checks whether you can diagnose GC problems from data rather than by guessing: read the GC logs, tell normal G1 pauses from emergency ones, find the cause, and consciously choose between tuning, changing the code and switching collectors, understanding the cost of each option.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.