When you start monitoring a JVM and open Threads page on Properties view, you can see the list of threads and stack traces.
Identifying the code causing deadlock Identifying the code consuming CPU resource