Kiwi Power interview question

How do you troubleshoot memory errors on the JVM?