Analyze key log files (such as /var/log/messages), and then search for messages about high CPU or out-of-memory (OOM) events.
Use your log file results to figure out why the process is consuming a high amount of CPU or memory. Note: For example, you might find a large number of requests in Apache access logs or NGINX access logs.