Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Enterprise applications deployed within the GlassFish application server behave like any other Java application, and profiling techniques used for Java applications work here as well. Chapter 5, “Java Application Profiling,” and Chapter 6, “Java Application Profiling Tips and Tricks,” provide both an introduction into using modern Java profilers and tips and tricks to employ to identify performance issues in Java applications. Readers are encouraged to read both chapters to understand how to improve the performance of their enterprise applications. In this section, how to attach and collect the profile data to introspect enterprise applications deployed on the GlassFish application server is presented. Once the data is collected the techniques described in Chapters 5 and 6 can be used to analyze the performance of the application.
As described in Chapter 5 the Oracle Solaris Studio Performance Analyzer collects profile information in an experiment file with a command line utility called collect, or often referred to as the Collector. Also remember that the Oracle Solaris Studio Performance Analyzer runs on Solaris (both SPARC and x86/x64) and Linux x86/x64 platforms. Profiling on the Windows platform can be done using the NetBeans Profiler. Both approaches are covered in this section beginning with the Performance Analyzer approach. Before reading this section it may be useful to read Chapter 5 to obtain an understanding of how to use the Performance Analyzer and NetBeans Profiler.