A critical system is experiencing latency. How would you approach diagnosing and rectifying the problem?