How would you diagnose a high-CPU or memory-leak issue in a live production environment running on a Linux server?