Debug Java programs that run on your server

You have several options for debugging and troubleshooting Java™ programs that run on your server, including IBM® iSeries™ System Debugger, the server interactive display, Java Debug Wire Protocol-enabled debuggers, and Java Watcher.

The following information is not a comprehensive assessment of the possibilities but does list several options. One of the easiest ways to debug Java programs that run on your iSeries server is to use the IBM iSeries System Debugger. IBM iSeries System Debugger provides a graphical user interface (GUI) that enables you to more easily use the debugging capabilities of your iSeries server.

You can use the interactive display of your server to debug Java programs, although the iSeries System Debugger provides a more easily usable GUI that enables you to perform the same functions.

Additionally, the iSeries Java virtual machine (JVM) supports the Java Debug Wire Protocol (JDWP), which is part of the Java Platform Debugger Architecture. JDWP-enabled debuggers allow you to perform remote debugging from clients that run different operating systems. (The IBM iSeries Debugger also enables you to perform remote debugging in a similar way, although it does not use JDWP.) One such JDWP-enabled program is the Java debugger in the Eclipse project universal tool platform.

If the performance of your program degrades as it runs for a longer period of time, you may have erroneously coded a memory leak. You can use Java Watcher to help you debug your program and locate memory leaks by performing Java application heap analysis and object create profiling over time.