1 Prepare Java for Troubleshooting
Topics
Update the Java Runtime
Use the latest version of Java SE to avoid spending time on troubleshooting issues in Java SE that were fixed. Often, a problem caused by a bug in the Java runtime is fixed in the latest update release. Working with the latest Java SE version helps avoid some known and common issues.
Note:
Depending on your situation or circumstances, it might not be possible to update or upgrade to the latest Java SE version.Enable Options and Flags for JVM Troubleshooting
Set up JVM options and flags to enable gathering relevant data for troubleshooting.
The data you gather depends on the operating system and type of problem you are having or expect to have. Consider gathering the following data:
Make a Java Application Easier to Debug
Using a logging framework is a good way to enable future debugging.
If you run into problems in a specific module, you should be able to enable logging in that module. It is also good to specify different levels of logging, for example info, debug, and trace. For more information about Java logging, see Java Logging Overview.