I am trying to add some diagnostics details in a
Java program.
What details are available from the Runtime environment, as well as the Java class. The goal is to have as much details about the context of the process when an exception occurs.
My understanding is that Memory/CPU usage is not available.
Is there a way to get number of threads running? Other details to diagnoze the issue.
Please share your experience,
- Avi