Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
AbouttheCurrenttab
AbouttheCurrenttab
About the Current tab

 

The Current tab displays near real-time information on all applications that were connected to your DB2 database during the last minute or, in the Application context, from the beginning of the time slice. If you have discerned an immediate performance issue and are looking for an indication as to where to begin your analysis, start with the Current tab. It is also worthwhile to start with the Current tab if your system appears to be 'hung' and there is no throughput.

...

Info

The Current tab displays information on the last minute of activity or, in the Application context, from the beginning of the time slice. For example, if you’ve worked at your screen for ten minutes and then refresh the information displayed on your screen, you will be able to view new information that occurred during the last minute of activity or from the beginning of the time slice in the Application context.

See “Analyzing Analyzing currently held locks” on page 38 locks and “Getting an overview of your application” on page 23.

...

The following table describes the information displayed in the Database Overview view.

Table 4- 1 Database Overview view

View areaDescription
Application

Displays the following application-related information:

  • Applications. Number of applications (different applications) that were connected to the database during the last sample.
  • Active Applications. Number of applications (different applications) that were in one of the In DB2 states during the last sample.
  • Locked Applications. Number of blocked applications connected to the database during the last sample.
In DB2

Displays the resource consumption breakdown of the database during the last minute or, in the Application context, from the beginning of the time slice. In addition to the resource distribution, the view displays the number of applications in each state during the last sample.

The following information is displayed:

  • State. Displays the In DB2 state.
  • In DB2. Graphical representation of the Time column.
  • Time. Amount of time the selected entity was in this state.
  • %. Percentage of time the selected entity was in this state.
Info

All the information displayed in this table represents information collected during the last minute, with the exception of the Applications column, which represents the number of applications, in the last sample, that were in a particular state.

About viewing Database locks

...

The following table provides a detailed explanation of the Lock Tree

Table 4- 2 Database Locks view

View areaDescription
Lock tree

It is important to determine the following information for each blocking chain:

  • Which applications are involved in the lock?
  • Which application is blocking the others?

The Lock Tree provides the necessary information to get to the root of the problem by providing information on applications currently involved in the blocking situation.

A yellow lock indicates that the application is currently locking other applications but is not itself blocked.

A red lock indicates the application is currently blocked by another application. Note that an application application may also block other applications while being blocked by itself.

To gain a better understanding of the lock tree take a closer look at its structure. Notice that the application located in the root of each chain is the application that blocks all others. Each application directly blocks all applications positioned one level beneath it.

The Lock Tree displays the application handle, program name, the object being blocked and the lock type.

Anchor
AbouttheApplicationentity
AbouttheApplicationentity
About the Application entity

...

When one of these attributes changes, a new application is recorded and displayed. The following table describes the information displayed in the Application overview.

Table 4- 3 Application Overview

View areaDescription
Application tab

Displays the following information:

  • Application Handle
  • Application ID
  • Program
  • State
  • In DB2
  • Text
In DB2 tab (last minute)

Displays the resource consumption breakdown of the application during the last minute (that is, 60 samples of the Collector). In addition to the resource distribution, the view displays the number of applications in each state during the last sample.

It is important to remember that since this view only displays the last minute's activities, you will always be viewing the activities that occurred during the last minute and not the activities that occurred since the last refresh action.

The following information is displayed:

  • Application Handle
  • Application ID
  • In DB2
  • Using CPU
  • CPU Wait
  • Sync I/O Wait
  • Prefetch Wait
  • Direct I/O Wait
  • Utility Wait
  • Lock Wait
  • I/O Error Wait
  • Remote Query Wait
Connection tab

A connection includes application identifiers such as User, Login, and Machine. The following information is displayed:

  • Application Handle
  • Application ID
  • Program
  • Connect Time
  • User
  • Login
  • Machine
  • Module
  • Action

The following table describes the information displayed in the Application Text view.

Table 4- 4 Application Text view

View areaDescription
TextDisplays the text of the current statement. If the application is not active and executing a statement, a message notifying you that the application is not active and that no text is available is displayed.

Anchor
AbouttheApplicationHoldingLocksentity
AbouttheApplicationHoldingLocksentity
About the Application Holding Locks entity

...

The following table describes the information displayed by the Application Holding Locks overview.

Table 4- 5 Applications Holding Locks overview

View areaDescription
Application tab

Displays the following information:

  • Application Handle
  • Application ID
  • Program
  • State
  • In DB2
  • Locked Tablespace
  • Locked Schema
  • Locked Table
  • Text
In DB2 tab (last minute)

Displays the resource consumption breakdown of the application during the last minute (that is, 60 samples of the Collector). In addition to the resource distribution, the view displays the number of applications in each state during the last sample.

It is important to remember that since this view only displays the last minute's activities, you will always be viewing the activities that occurred during the last minute and not the activities that occurred since the last refresh action.

The following information is displayed:

  • Application Handle
  • Application ID
  • In DB2
  • Using CPU
  • CPU Wait
  • Sync I/O Wait
  • Prefetch Wait
  • Direct I/O Wait
  • Utility Wait
  • Lock Wait
  • I/O Error Wait
  • Remote Query Wait
Connection tab

A connection includes application identifiers such as User, Login, and Machine. The following information is displayed:

  • Application Handle
  • Application ID
  • Program
  • Connect Time
  • User
  • Login
  • Machine
  • Module
  • Action

About viewing information on the lock breakdown of an application that is holding locks

...

The Lock Tree displays the SPID, program name, the object being blocked and the lock type. The following table describes the information displayed in this view.

Table 4- 6 Locks view for the Application Holding Locks entity

View areaDescription
Lock Tree

The Lock tree provides the necessary information to determine the following information for each blocking chain:

  • A yellow lock indicates that the application is currently locking other applications but is not itself blocked.
  • A red lock indicates the application is currently blocked by another application.
Info

An application may also block other applications while being blocked by itself.

About viewing the text of an application that is holding locks

...

The following table describes the information displayed in the Statement Overview view.

Table 4- 7 Statement Overview view

View areaDescription
General tab
  • Statement ID—Displays the internal statement hash value (SHV) calculated by the Collector, or, in the case of a stored procedure, displays the name of the stored procedure.
  • In DB2
  • Text
In DB2 (Last minute)

The following information is displayed:

  • Statement ID—Displays the internal statement hash value (SHV) calculated by the Collector, or, in the case of a stored procedure, displays the name of the stored procedure.
  • In DB2
  • Using CPU
  • CPU Wait
  • Sync I/O Wait
  • Prefetch Wait
  • Direct I/O Wait
  • Utility Wait
  • Lock Wait
  • I/O Error Wait

About viewing current Statement text

...

  1. In the database partition list, choose the item you want to analyze.
  2. On the View controls in the Main area, click Locks and examine the locking contentions. Move the cursor over the locked application in the tree to display the text of the locked application.

 

...

  1. .

...