Confluent Interview Question

How would you debug Java performance issues?