Thread saturation, memory spikes, restarts β€” often one root cause. Here's how to build an agent that finds it.