Component profiling and tracing

EAServer generates profiling and tracing code for deployed business and Web components.

Tracing is off by default and must be enabled in server properties and in the code generation options for EJB or Web modules. To enable tracing in server properties, configure the Enable EJB Trace and Enable Web Trace options in the server properties as described in “Log/Trace tab” in Chapter 3, “Creating and Configuring Servers,” in the System Administration Guide. To enable or disable tracing for EJB and Web components, configure the following properties in the user configuration script for the module:

To enable profiling of deployed components, you must enable generation of profiling code and not disable statistics collection in the server properties. Generation of profiling code is enabled by default in deployed components. The following properties can be changed in the generated configuration scripts to enable or disable generation of profiling code:

In server properties, the Disable Statistics (disableStatistics) property must be false to allow collection of profiling statistics.

If you change the profiling or tracing settings for an EJB or Web module, recompile the module and restart the server for the change to take affect. If you change the server Disable Statistics, Enable Web Tracing, or Enable EJB Tracing properties, restart the server for the change to take affect.

When tracing or profiling is enabled, you can view statistics in the Web console or with a Web connection from your spreadsheet software. For more information, see “Viewing server statistics” in Chapter 11, “Runtime Monitoring,” the System Administration Guide.