Versions Compared

Key

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

This section includes the following topics:

Anchor
AbouttheCurrenttab
AbouttheCurrenttab
About the Current tab

The Current tab displays near real-time information on all sessions that were connected to your SQL Server database during the last minute. 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.

...

See “Analyzing locks currently held” on page 73.

Anchor
HowtheCurrenttabisstructured
HowtheCurrenttabisstructured
How the Current tab is structured

The Current tab displays information on a selected entity and its associated entities. For example, if the parent entity is a Session, its associated entities would be Statements or Batches.

...

The selected entity is always reflected in the Tab heading, which serves as a point of orientation. The highest-level entity you can view information for in the Current tab is Instance. You can view another instance by selecting it from the Instance list.

About the Main Area in the Current tab

The Main area shows comprehensive information on the selected entity. You can choose from several views to examine the entity from different angles. For example, if you are analyzing an Instance entity, you can, focus exclusively on the data displayed in the overview, such as, In MS-SQL data (default), or choose to view performance statistics on the temporary database (Tempdb) in the SQL Server.

About the Association area in the Current tab

The Association area provides corresponding information on the entities associated with the selected entity (displayed in the Main area). For example, you can associate to the Locked Objects related to the selected instance. The selection you make is reflected in the Association area only; the Main area remains unchanged. For some entities, tabs above the Association area enable you to view additional information. For example, the tabs displayed for a database entity are: General, In MS-SQL and Statistics. Clicking a tab displays different table columns with the same type of child entities.

From the Association area, you can also drill down to another entity by clicking a table row. A drilldown drill-down affects the entire tab. When you drill down to another entity, the Tab heading displays the new selection, the Main area displays information on the newly selected entity, and the Association area displays the entities associated with the selected entity.

...

See “About Precise for SQL Server tabs” on page 22.

Anchor
AboutexaminingentitiesintheCurrenttab
AboutexaminingentitiesintheCurrenttab
About examining entities in the Current tab

The Current tab displays information on different entities. This section provides an overview of all entities, their meaning, and their views.

...

  • Instance
  • Database
  • Session
  • Locked Object
  • Session Holding Locks
  • Statement and Batch
  • Active Session

About the Instance entity

The Instance entity displays information on the resource consumption of the entire instance and allows you to focus on how it is performing, during the last minute.

About getting an overview of current Instance activities

The Instance Overview displays information on the activity of the instance, such as number of sessions and the resource consumption breakdown of the instance.

...

Table 5-1 Instance Overview view

 

View area    Description

...

View areaDescription
Sessions
  • Sessions. Indicates the number of sessions (different SPIDs) that were connected to the SQL Server instance during the last sample.

...

  • Active Sessions. Number of sessions (different SPIDs) connected to the SQL Server instance during the last sample that were not in a state that is not part of the In MS-SQL group.

...

  • Locked Sessions. Number of blocked sessions in the last sample.

...

  • Memory Usage (Max)

...

  • . Displays the maximum memory (in MB) consumed by all sessions that were opened in SQL Server during the last 15 minutes.

...

  • Open Transactions (Max)

...

  • . Maximum number of transactions that were opened in SQL Server during the last 15 minutes.
In MS-SQL (Last minute)

...

Displays the resource consumption breakdown of the instance 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.

...

  • %. Percentage of time the selected entity was in this state.

...

  • In MS-

...

  • SQL. Graphical representation of the Time column.

...

  • Time. Amount of time the selected entity was in this state.

...

  • Sessions (Last Sample)

...

  • . Current number of sessions in the specified state. For example, there are currently three sessions experiencing a Lock Wait 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.

About viewing Instance Tempdb usage

Displays information on the current usage of the tempdb database.

...

Table 5-2 Instance Tembdb usage view

 

View area    Description

...

View AreaDescription
Temporary tables

Displays the following information on temporary tables:

...

  • Active. Number of temporary tables that are currently used by any session.

...

  • Idle. Number of temporary tables that are currently not used by any session.

...

  • Local. Number of local temporary tables currently defined in the database.

...

  • Global. Number of global temporary tables currently defined in the database.
Tempdb usage (Last second)

...

Displays statistical information on the tempdb database files within the last second. If the tempdb database contains more than one file, the displayed value is a total of all tempdb database files.

...

  • Reads.Total number of reads that were executed in the tempdb database during the last second before the screen was refreshed.

...

  • Writes. Total number of writes that were executed in tempdb database during the last second before the screen was refreshed.

...

  • Bytes Read. Total number of bytes that were read during the last second before the screen was refreshed.

...

  • Bytes Written. Total number of bytes that were written in tempdb database during the last second before the screen was refreshed.

...

  • I/O Wait (MS)

...

  • . Total amount of time (in milliseconds) that sessions waited for I/Os to complete in tempdb database.
Tempdb

...

size

Provides a graphical representation of the components of the tempdb database size, broken down as follows:

...

  • Active. Total size of all the temporary tables currently in use.

...

  • Idle. Total size of all the temporary tables that are currently not in use.

...

  • Free Space. Total free space available in the tempdb database.

...

  • Other Size. Space currently used by other tables/operations. For example, system tables defined on the tempdb, space used by a sort operation currently being executed, or raw versioning.

About viewing Instance locks

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

...

Table 5-3 Instance Locks view

 

View area    Description

...

View AreaDescription
Lock tree

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

...

  • Which sessions are involved in the lock?

...

  • Which session is blocking the others?

...

  • Which object is blocked?

...

  • What type of lock is causing the block?

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

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.

Lock breakdown (Last minute)

...

Displays the Lock Wait duration broken down into lock levels such as Table, Page and Key, for the selected instance, 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 instance was locked at the specified lock level.

...

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

...

  • Sessions (Last Sample)

...

  • . Current number of sessions locked at the specified lock level.
Info

...

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

See “About session states” on page 36.

About viewing Instance statistics

Displays instance statistics for the last 30 minutes, such as CPU usage, memory paging and disk usage. The following table describes the information displayed in the Instance statistics view.

Table 5-4 Instance Statistics view

View Area

...

Description

View area    Description

...

Sessions

Displays the number of sessions connected to the instance, broken down into active and locked sessions, as follows:

...

  • Sessions. Number of sessions (different SPIDs) connected to the instance during the last sample.

...

  • Active sessions. Number of sessions (different SPIDs) that were in one of the In MS-SQL states during the last sample.

...

  • Locked sessions. Number of blocked session in the last sample.
CPU

...

usageDisplays statistics that report on CPU usage, broken down into SQL Server CPU usage and Non-SQL Server CPU usage.

Table 5-4 Instance Statistics view

 

View area    Description

...

Page faultsDisplays statistics that report on page faults broken down into SQL Server Page Faults/sec and Non-SQL Server Page Faults/sec.
Load

...

Displays statistics that report on the instance load such as Batch Requests/sec, Transactions/sec and Logins/sec.
Disk

...

operationsDisplays statistics that report on I/O load, such as percentage of elapsed time the disks are busy servicing read/write requests.
Network

...

packetsDisplays statistics that report on network load, such as Max Packets Received/sec and Max Packets Sent/sec.

About the Database entity

Displays information on the activity and resource consumption of the database, including the number of sessions connected to the database during the last sample taken, various session-related statistics and the database resource consumption breakdown for the last minute.

About getting an overview of current Database activities

Displays information on the activity and resource consumption of the database, including the number of sessions connected to the database during the last sample taken, various session-related statistics and the database resource consumption breakdown for the last minute.

...

Table 5-5 Database Overview view

 

View area    Description

...

View AreaDescription
Session

Displays the following session-related information:

...

  • Sessions. Number of sessions (different SPIDs) that were connected to the database during the last sample.

...

  • Active Sessions. Number of sessions (different SPIDs) that were in one of the In MS-SQL states during the last sample.

...

  • Locked Sessions. Number of blocked sessions connected to the database during the last sample.

...

Statistics

Displays information on the following statistical parameters:

...

  • Memory Usage (Max)

...

  • . Displays the maximum memory (in MB) consumed by all sessions that were connected to the selected database during the last 15 minutes.

...

  • Memory Usage (Total)

...

  • . Displays the total memory (in MB) consumed by all sessions that were opened in SQL Server during the last 15 minutes.

...

  • Open Transactions (Max)

...

  • . Displays the maximum transactions opened by all the sessions that were connected to the selected database during the last 15 minutes.

...

  • Open Transaction (Total)

...

  • . Displays the total transactions opened by all the sessions that were connected to the selected database during the last 15 minutes.
In MS-SQL (Last minute)

...

Displays the resource consumption breakdown of the database 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.

...

  • In 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.

...

  • Sessions (Last Sample)

...

  • . Current number of sessions in the specified state. For example, there are currently three sessions experiencing a Lock Wait 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.

About viewing Database locks

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

...

Table 5-6 Database Locks view

 

View area    Description

...

View AreaDescription
Lock tree

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

...

  • Which sessions are involved in the lock?

...

  • Which session is blocking the others?

...

  • Which object is blocked?

...

  • What type of lock is causing the block?

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

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.

Lock breakdown (Last minute)

...

Displays the Lock Wait duration broken down into lock levels such as Table, Page and Key, for the selected database, 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 database was locked at the specified lock level.

...

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

...

  • Sessions (Last Sample)

...

  • . Current number of sessions locked at the specified lock level.
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.

About the Session entity

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

  • System Process ID (SPID)—a . A unique integer assigned to each user connection when the connection is made.
  • Login time
  • Session identifiers such as program, database user, or login

...

Table 5-7 Session Overview

 

View area    Description

...

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.

      ...

      Displays text of the selected statement or batch.

      Anchor
      HowtheCurrenttabcanhelpyouidentifyperformanceproblems
      HowtheCurrenttabcanhelpyouidentifyperformanceproblems
      How the Current tab can help you identify performance problems

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

      ...