Versions Compared

Key

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

...

View AreaDescription
Session identifiers

Displays information on the session identifier's connection details, session-related statistics and a breakdown of session resource consumption, during the last minute.

  • Session identifiers:
    • State. Current state of the session.
    • Status. Current status of the session as reported by SQL Server, such as:
      • Sleeping. Session is idle.
      • Runnable. SPID is currently executing.
      • Dormant. Same as Sleeping.
      • Rollback. Session is rolling back the transaction.
      • Defwakeup. Session is waiting for a resource that is in the process of being freed.
        The waitresource field should indicate the resource in question.
      • Spinloop. Session is waiting while attempting to acquire a spinlock used for concurrent control on Symmetric Multi-Processing (SMP) systems.
        See SQL Server Books Online for more information.
    • Login Time. Time the session started.
    • Last Batch Time. If the session is currently executing a batch this field displays the time the batch started; otherwise it displays the time the previous batch finished executing.
    • Duration. Time elapsed since login time.
    • Idle Time. Time elapsed since last batch.
    • Open Transactions. Number of open transactions for the SPID.
    • Parallel Sessions. Current number of subthreads used to execute a batch in parallel. This counter is calculated from the ecid column in sysprocesses. It enables you to verify that SQL Server uses the best execution plan for the current statement.
    • Blocked By. If the session is blocked by another session, displays the SPID of the blocker session.
    • Wait Type. An internal SQL Server field that signifies the current wait identifier, used by the Collector to assign a Session State.
    • Wait Time. If the session is waiting this field displays the current wait time in milliseconds.

...

Connection

A connection includes session identifiers, such as, database, login, machine, user and work type, as reported by sysprocesses.

...

In ERP systems (if the appropriate ERP extension is installed), Precise for SQL Server replaces some identifiers as follows:

In SAP:

...

  • Login -> SAP User

...

  • Work Type -> Dialog, Update, Spool, Background, Enqueue

...

  • Machine -> User Application

In PeopleSoft:

...

  • Login -> PS User ID

...

  • Work Type -> Interactive, Batch

In Siebel:

...

  • Login -> Siebel User

...

  • Program -> Siebel View

...

  • Machine -> Siebel Server

...

  • Work Type -> Interactive, Batch, Background

In COM+:

...

  • Work Type -> COM+
Statistics

...

Displays information on the following statistical parameters:

...

  • CPU Time. CPU time for the sessions during the last minute.

...

  • Physical I/O

...

  • Operations. Total number of physical I/O requests performed by the session during the last minute.

...

  • Memory Usage. Number of pages in the procedure cache that are currently allocated to the SPID. A negative number indicates that the process is freeing memory allocated by another process.
In MS-SQL (

...

Last minute)

...

Displays the resource consumption breakdown of the session during the last minute (that is, 60 samples of the Collector). In addition to the resource distribution, the view displays the number of sessions 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:

...

  • State. Displays the In MS-SQL state.

...

  • MS-SQL. 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 Sessions column, which represents the number of sessions, in the last sample, that were in a particular state.

See “About session states” on page 36.

The following table describes the information displayed in the Session Locks view.

Table 5-8 Session Locks view

 

View area    Description

...

View AreaDescription
Locks

Displays lock wait duration broken down into lock levels such as Table, Page and Key, for the selected Session, during the last minute. The sessions that are currently involved in a locking or blocking situation with the selected session are displayed in tree format.

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 found' while the Lock Breakdown grid still shows lock duration.

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

A yellow lock indicates that the session is currently locking other sessions but is not itself blocked.

A red lock indicates the session is currently blocked by another session. Note that a session may also block other sessions while being blocked by itself.

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

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

The Lock breakdown (Last minute) displays the Lock Wait duration broken down into lock levels such as Table, Page and Key, for the selected session, during the last minute:

...

  • Lock Level. Such as, Row, Key, Page, Table, or Other. “Other” includes all other locks.

...

  • Lock Wait. A graphical representation of the data displayed in the Time column.

...

  • Time. Amount of time the selected session was locked at the specified lock level.

...

  • %. Percentage of time the selected session was locked at the specified lock level.
Info

...

The table only displays lock levels that the selected session was blocked by. If the selected session was not blocked, the information area remains empty.

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

Table 5-9 Session Text view

 

View area    Description

...

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

About the Locked Object entity

The Overview view in the Main area displays information on the objects that are currently locked (such as, Database, Object, Sessions, and Lock Type).

...

Table 5-10 Locked Object Overview view

Column

...

Description

...

Database

...

Displays the database containing the blocked object.
Object

...

Displays the object being blocked.

...

SessionsDisplays the number of sessions that hold locks on the object or are blocked while trying to acquire a lock on the object.
Lock

...

TypeIndicates the type of lock that is held against the object.

You can display information on Locked Objects, in the Association area, when the selected entity is an instance or database. If an instance is selected, the Association area shows information on all currently locked objects in all the databases in the instance. If a database is selected, the table shows specific information on all currently locked objects in the selected database. Moving the cursor over the icon in the first column displays a ToolTip that identifies the object's lock type.

...

Table 5-11 Information displayed in Association area for Locked Objects

 

Column    Description

...

ColumnDescription
IconIndicates if there is a session waiting for the object.
Object

...

Displays the object being blocked.
Sessions

...

Number of sessions that hold locks on the object or are blocked while trying to acquire a lock on the object.
Locks

...

Total number of locks, broken down into the following lock types: Exclusive, Update, Shared, Intent Exclusive, Intent Update, and Intent Shared.

...

Exclusive

Indicates how many of the locks placed on the sessions were exclusive locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

When exclusive locks are placed on a resource, the holding session is granted exclusive access to that resource and it can perform modification operations.

Update

...

Indicates how many of the locks placed on the sessions were update locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

Update locks are used to prevent deadlocks. A deadlock occurs when more than one session intends to update a resource and tries to lock the resource for future potential updates. The update lock is an interim stage which is promoted to an exclusive lock when the update is actually made.

Shared

...

Indicates how many of the locks placed on the sessions were shared locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

When there are shared locks on an object, concurrent transactions can read but not modify the resource.

Intent

...

Exclusive

Indicates how many of the locks placed on the sessions were intent exclusive locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

Indicates that a transaction intends to modify some subordinate resources in the lock hierarchy by placing exclusive locks on those particular resources.

Table 5-11 Information displayed in Association area for Locked Objects

 

Column    Description

...

Intent Update

Indicates how many of the locks placed on the sessions were intent update locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

Indicates that a transaction intends to update some subordinate resources in the lock hierarchy, at a later stage, by placing update locks on those particular resources.

Intent

...

Shared

Indicates how many of the locks placed on the sessions were intent shared locks and shows a breakdown of the lock modes into lock levels, such as, Table, Row, Key, and Page.

Indicates that a transaction intends to read but not modify some subordinate resources in the lock hierarchy by placing shared locks on those particular resources.

About the Session Holding Locks entity

The fact that a currently active session is holding a resource does not necessarily mean that there is a contention between resources. The Session Holding Locks entity displays information that lets you differentiate between sessions that are locking resources and sessions that are holding resources.

The following views display information on sessions holding locks:

  • Overview
  • Locks
  • Text

About getting an overview of current sessions holding locks

Displays information on the session identifier, including connection details, session-related statistics and a breakdown of session resource consumption, during the last minute.

...