Hitachi

uCosminexus Application Server Operation, Monitoring, and Linkage Guide


5.3.2 Monitoring the execution time of J2EE application

The functionality for monitoring the J2EE application execution time monitors the request execution time of the EJB and Web applications. If an error such as, infinite loop, is detected in the J2EE application through this functionality, the user can be notified by timing out the method process that did not terminate within the fixed time. You can also use the method cancellation functionality to terminate the transactions forcibly and cancel the methods that are in use.

The functionality for monitoring the J2EE application execution time includes method timeout and method cancellation functionality.

Method timeout functionality

This functionality notifies the user by performing timeout of the method processing that did not terminate within a fixed time, from among the requests existing in the monitoring base. The monitoring base provides the interface required for implementing the functionality for monitoring the J2EE application execution time and manages the monitoring information.

Method cancellation functionality

This function cancels the method after timeout has been notified by the method timeout functionality. The transaction is also concluded forcibly when the database is being accessed at the time of cancellation.

Note that in the method timeout and the method cancellation functionality, the thread dump is output as the log information. The number of thread dump files that are generated can be monitored by the resource depletion monitoring functionality. For the resource monitoring functionality, see 4. Monitoring Resource Depletion.

The following figure shows the functionality for monitoring the J2EE application execution time:

Figure 5‒1: Overview of functionality for monitoring the execution time of J2EE application

[Figure]

The following points describe the commands in the above figure: