Versions Compared

Key

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

...

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

Displays lock wait duration for the selected Database during the last minute. The applications that are currently involved in a locking or blocking situation are displayed in tree format.Note:

Info

Since the Lock tree represents the locks that are currently occurring, and the lock breakdown represents the duration of locks occurring during the last minute, it is possible that a situation may occur whereby a lock was freed, but since the last minute has not yet passed, the lock tree will display the message ‘No locks detected' while the Lock Breakdown grid still shows lock duration.

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

Displays information on a single connection with Microsoft SQL Server. Precise for SQL Server identifies an application by the following attributes:

  • Application ID—a ID. A unique integer assigned to each user connection when the connection is made.
  • Application identifiers such as program or database user.

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

...

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

...

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

...

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

...

You can identify a performance problem by doing one or more of the following:

Anchor
Examiningresourceconsumptionofanentiredatabasepartition
Examiningresourceconsumptionofanentiredatabasepartition
Examining resource consumption of an entire database partition

The Current tag provides an almost real-time picture of the performance and behavior of your DB2 database partition. The Current tag displays information on the last time slice of activity, unless otherwise configured as for the last minute. Usually you will examine the activities of the entire database partition level to determine what is happening in your system. By examining the current activity at a database partition level of display, you can see how it is currently behaving and determine if there is an overall problem that affects all applications or if there is a problem with specific applications.

To examine resource consumption of an entire instance and database1    In

  1. In the database partition list, choose the database partition you want to analyze.

Do the following:

...

  1. On the View controls in the Main area, click Overview. This will show you a breakdown of resource consumption for the last minute.

Anchor
Observingtheactivityofasingleapplication
Observingtheactivityofasingleapplication
Observing the activity of a single application

The Association area of the Current tag lets you view which applications are currently connected to the database partition. You can observe the current state of the application and determine if it is active or waiting for a resource. You can also identify the application by different identifiers such as its login information, the machine it is running on, or the programs it is running. The currently active TSQL code is displayed for active applications.

To observe current application activity1    In

  1. In the database partition list, choose the database partition you want to analyze.

...

  1. On the Association controls in the Association area, select one of the following to focus your investigation on the applications that were active in SQL Server during the last minute:
    • Active Applications

...

    • Applications

...

Anchor
Examiningasingleconnection
Examiningasingleconnection
Examining a single connection

You may need to explore a single running application, to obtain more information on it. In the Association area you can drill down to the specific application in question, and continue your analysis.

To examine a single connection1    In

  1. In the database partition list, choose the database partition you want to analyze.

...

  1. In the Association area, drill down to the application whose connection you want to analyze.

...

  1. Continue your analysis by examining its resource breakdown and its recent statements, during the last few minutes.

Anchor
Analyzingcurrentlyheldlocks
Analyzingcurrentlyheldlocks
Analyzing currently held locks

To be able to avoid a blocking situation, it is important to have an accurate picture of all the locks held in the system. This will help you understand if the lock system is tuned and if it is possible to avoid a potential blocking situation. Using Precise for DB2, you can now observe the locks currently held in the database partition and group them according to lock level and lock mode.

Locks can be viewed in two levels:

  • Application context - . To see which application is locking you.
  • DB partition context - . To see the Lock tree with details of all locks holding the application. To analyze locks currently held

...

  1. In the database partition list, choose the item you want to analyze.

...

  1. 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.

 

Precise. Performance intelligence from click to storage. Learn more > >

...