Versions Compared

Key

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

...

Anchor
HowtheActivitytabisstructured
HowtheActivitytabisstructured
How the Activity tab is structured

Figure 6- 1 Precise for SQL Server Activity tab structure

...

The following table describes which Collector entities can be examined in the Activity tab.

Table 6- 1 Collector entities that can be examined in the Activity tab

Collector EntityDescription
DatabaseDisplays information on an activity in reference to a specific database.
Program

Displays information on an activity generated from a specific program. Displays ‘N/A' if the program_name column in sysprocesses is null.

If ERP is installed, the program is updated with the ERP data. For more information, see extended ERP data.

Login

Displays information on an activity generated by a specific login. Displays ‘N/A' if the login name column in sysprocesses is null.

If ERP is installed, the login is updated with the ERP data. For more information, see extended ERP data.

UserDisplays information on an activity generated by a specific user in the database in use.
Machine

Displays information on an activity generated from a specific workstation. Displays ‘N/A' if the hostname column in sysprocesses is null.

If InterPoint for ERP is installed, the machine is updated with the ERP data. For more information, see extended ERP data.

Work Type

The Precise for SQL Server Collector divides SQL Server activities into several groups. The Work Type entity displays performance information on each group.

The following groups are available:

  • User Application. Activities generated by application components that are not one of the following: SQL agent, COM+, PeopleSoft, Siebel, SAP.
  • SQL Agent Job. Activities generated by the SQL Agent jobs.
  • COM+. Activities generated by a COM+ application (displayed only if Interpoint for COM+ is installed).

The following groups are only displayed if InterPoint for ERP is installed:

In SAP:

    • Dialog. Activities generated from SAP Dialog work process.
    • Update. Activities generated from SAP Update work process.
    • Spool. Activities generated from SAP Spool work process.
    • Background. Activities generated from SAP Background work process.
    • Enqueue. Activities generated from SAP Enqueue work process.

In PeopleSoft:

    • Interactive. Activities generated from the PeopleSoft Interactive panel.
    • Batch. Activities generated from the PeopleSoft batch.

In Siebel:

    • Interactive. Activities generated from the Siebel interactive application.
    • Batch. Activities generated from the Siebel Batch process.
    • Background. Activities generated from the Siebel Background process.
COM+For more information, see extended ERP/COM+ documentation.
ERP DataFor more information, see extended ERP/COM+ documentation.
JobDisplays information on an activity, with reference to a specific job.

See “Precise for SQL Server agents” on page 19.

...

The following table describes the additional information displayed in the Performance tab in the Association area.

Table 6- 2 Information displayed in the Performance tab

ColumnDescription
Entity name (such as instance, database, etc.)Displays the name of the entity.
In MS-SQLDisplays entity resource consumption (default: stacked bar chart) and shows entity breakdown, over the selected time period.
%Displays the percentage of the total In MS-SQL.
SessionsNumber of sessions that occurred during the selected time period of the selected entity.
Duration (Avg)Average duration for a single session, in the selected entity, during the selected time period, calculated by dividing the Duration by the number of Sessions.
Statement ExecutionsNumber of statements executed within the selected time period that were generated by the selected entity's sessions.
CPU Time

Cumulative CPU time for the entity during the selected time period.

This value is calculated by the Collector as follows (this value is an approximation)—the CPU Time field in sysprocesses is sampled at the start point and end point. The value sampled at the start point is subtracted from the value sampled at the end point resulting in the CPU Time reported. The start and end points are determined according to values that have changed. For example, a session is sampled by the Collector for five seconds, but the start and end points were calculated according to when a value has changed. As a result, the calculated CPU Time in this example is only three out of the sampled five seconds since this is takes into consideration when the value has changed.

About viewing In MS-SQL data for Instance and Collector entities

...

The following table describes the information displayed for execution plans in the Procedure Cache tab.

Table 6- 3 Information displayed in the Procedure Cache tab

ColumnDescription

Entity name (such as Instance, Database)

 


Displays the name of the entity.
Elapsed TimeAmount of time it took to complete the executions of the plan.
Execution CountNumber of times the plan was executed.
Avg. DurationAverage amount of time it took to execute the plan, calculated as total elapsed time divided by the execution count.
RecompilationsNumber of times a plan was recompiled while it remained in the procedure cache.
CPU TimeAmount of CPU time consumed by the executions of the plan.
CLR TimeTime consumed inside CLR objects by the executions of the plan.
Logical I/ONumber of logical reads and writes performed by the executions of the plan.
Physical ReadsNumber of physical reads performed by the executions of the plan.

About Statement, Batch, Collapsed Statement or Collapsed Batch entities

...

The following table describes which performance and resource consumption information is displayed for the statement, batch, collapsed statement and collapsed batch entities.

Table 6- 4 Statement, Collapsed Statement, Batch and Collapsed Batch entities

EntityDescription
Statement

Displays information on the activity of a specific TSQL statement. A statement is always part of a batch.

When an encrypted stored procedure is encountered the statement will display “Encrypted Text”.

BatchDisplays information on the activity of a specific batch. A batch can either be a stored procedure, stored function, trigger, or an ad hoc batch. If it is a stored object, the name of the stored objects are displayed.
Collapsed statementRepresents similar statements that differ in their parameters (literals). In a collapsed statement, the literals are replaced with parameter markers. The collapsed statement lets you analyze the overall resource consumption of similar statements.
Collapsed batchSimilar to collapsed statement a collapsed batch represents similar batches that differ in their parameters (literals). In a collapsed batch, the literals are replaced with parameter markers. The collapsed batch lets you analyze the overall resource consumption of similar batches.
Info

The information displayed for certain entities may differ slightly than that described, as is relevant for the specific entity. For example, if you have navigated to a storage entity (such as a database file), only the I/O wait information for the selected entity is displayed. If you have navigated to a locked object, only the Lock wait information is displayed.

...

The following table describes the additional information displayed in the Performance tab in the Association area.

Table 6- 5 Information displayed in the Performance tab

ColumnDescription
Image Modified

Click to launch the SQL tab with the selected entity, to continue your analysis of the selected statement or batch.

When launching to the SQL tab from a batch entity, the launch is performed in the context of the batch that has the latest explain statement performed on it.

Entity NameDisplays the name of the entity (statement or batch).
In MS-SQLDisplays entity resource consumption (default: stacked bar chart) and shows entity breakdown, over the selected time period.
%Displays the percentage of the total In MS-SQL.
Statement ExecutionsNumber of statements executed within the selected time period by the selected entity.
Statement Duration (Avg)Average duration for a single statement, in the selected entity, during the selected time period, calculated by dividing the Statement Duration by the number of executions.
TextDisplays the statement's text (formatted for easy readability).
About viewing In MS-SQL information for Statement and Batch entities

...

The following table describes the additional information displayed in the Statistics tab in the Association area.

Table 6-6 Information displayed in the Statistics tab

ColumnDescription
Image Modified
Click to launch the SQL tab with the selected entity, to continue your analysis of the selected statement or batch.
Entity Name (such as Statement)Displays the name of the entity.
CPU TimeCumulative CPU time for the entity during the selected time period.
Physical I/O OperationsTotal number of physical I/O requests performed by the selected entity during the selected time period.
Parallel Sessions (Min)Minimum number of threads used to execute the statement or batch in parallel. This counter is calculated from the ecid column in sysprocesses. This enables you to verify that SQL Server is using the best execution plan for the current statement.
Parallel Sessions (Max)Maximum number of threads used to execute the statement or batch in parallel. This counter is calculated from the ecid column in sysprocesses. This enables you to verify that SQL Server is using the best execution plan for the current statement.
About viewing Procedure Cache information for Statement and Batch entities

...

The following table describes the information displayed for execution plans in the Procedure Cache tab

Table 6- 7 Information displayed in the Procedure Cache tab

ColumnDescription

Entity name (such as Instance, Database)

Displays the name of the entity.
Elapsed TimeAmount of time it took to complete the executions of the plan.
Execution CountNumber of times the plan was executed.
Avg DurationAverage amount of time it took to execute the plan, calculated as total elapsed time divided by the execution count.
RecompilationsNumber of times a plan was recompiled while it remained in the procedure cache.
CPU TimeAmount of CPU time consumed by the executions of the plan.
CLR TimeTime consumed inside CLR objects by the executions of the plan.
Logical I/ONumber of logical reads and writes performed by the executions of the plan.
Physical ReadsNumber of physical reads performed by the executions of the plan.
About viewing Plan information for Statement and Batch entities

The following table describes the additional information displayed in the Plan tab in the Association area.

Table 6- 8 Information displayed in the Plan tab

ColumnDescription
Image Modified

Click to launch the SQL tab with the selected entity, to continue your analysis of the selected statement or batch.

Explain data for the statement will be in extrapolated context to the batch.

Entity Name (Such as Statement)Displays the name of the entity.
DatabaseIdentifies the database on which the statement or batch is run.
User

Displays one of the SQL Server users by whom this statement was executed.

If this statement is not part of a stored procedure, this is the user that will be used as the parsing user when explaining this batch.

Most Recent PlanIndicates the last time the access path of the statement or batch was changed.
Last Show PlanIndicates the last time the statement or batch was explained.
CostIndicates the total estimated cost of the statement's or batch's execution.
Table ScanIndicates whether a table scan was performed in the execution plan (applicable to Statement entity only).
Clustered Index ScanIndicates whether a clustered index scan was performed in the execution plan (applicable to Statement entity only).
clustered Index SeekIndicates whether a clustered index seek was performed in the execution plan (applicable to Statement entity only).
Index ScanIndicates whether an index scan was performed in the execution plan (applicable to Statement entity only).
Index SeekIndicates whether an index seek was performed in the execution plan (applicable to Statement entity only).
BookmarkIndicates whether a bookmark operation was performed in the execution plan (applicable to Statement entity only).
SortIndicates whether a sort operation was performed in the execution plan (applicable to Statement entity only).
Merge JoinIndicates whether a merge join operation was performed in the execution plan (applicable to Statement entity only).
Hash JoinIndicates whether a hash join operation was performed in the execution plan (applicable to Statement entity only).
Nestled Loops JoinIndicates whether a nested loops join operation was performed in the execution plan (applicable to Statement entity only).
Parallel AccessIndicates whether a parallel access operation was performed in the execution plan (applicable to Statement entity only).
Show Plan ErrorShows the error that occurred during the last explain process.

About the Collapsed statement and collapsed batch entities Association area

...

The following table describes the additional information displayed in the Performance tab in the Association area.

Table 6- 9 Information displayed in the Performance tab

ColumnDescription
Entity NameDisplays the name of the Collapsed Statement or Collapsed Batch.
In MS-SQLDisplays entity resource consumption (default: stacked bar chart) and shows entity breakdown, over the selected time period.
%Displays the percentage of the total In MS-SQL.
OccurrencesNumber of different statements possessing the selected collapsed form.
Statement ExecutionsNumber of statements executed within the selected time period by the selected entity.
Statement Duration (Avg)Average duration for a single statement, in the selected entity, during the selected time period, calculated by dividing the Statement Duration by the number of executions.
TextDisplays the statement or batch text (formatted for easy readability), in the collapsed form.
About viewing In MS-SQL data for Collapsed Statement and Collapsed Batch entities

...

The following table describes the additional information displayed in the Statistics tab in the Association area.

Table 6- 10 Information displayed in the Statistics tab

ColumnDescription
Entity Name (such as Collapsed Statement)Displays the name of the entity.
DatabaseIdentifies the database on which the collapsed statement or batch is run.
CPU TimeCumulative CPU time for the entity during the selected time period.
Physical I/O OperationsTotal number of physical I/O requests performed by the selected entity over the selected time period.
Parallel Sessions (Min)Minimum number of threads used to execute the statement or batch in parallel. This counter is calculated from the ecid column in sysprocesses. This enables you to verify that SQL Server is using the best execution plan for the current statement.
Parallel Sessions (Max)Maximum number of threads used to execute the statement or batch in parallel. This counter is calculated from the ecid column in sysprocesses. This enables you to verify that SQL Server is using the best execution plan for the current statement.
About viewing Procedure Cache data for Collapsed Statement and Collapsed Batch entities

...

The following table describes the information displayed for execution plans in the Procedure Cache tab.

Table 6- 11 Information displayed in the Procedure Cache tab

ColumnDescription
Entity name (such as Instance, Database)Displays the name of the entity.
Elapsed TimeAmount of time it took to complete the executions of the plan.
Execution CountNumber of times the plan was executed.
Avg DurationAverage amount of time it took to execute the plan, calculated as total elapsed time divided by the execution count.
RecompilationsNumber of times a plan was recompiled while it remained in the procedure cache.
CPU TimeAmount of CPU time consumed by the executions of the plan.
CLR TimeTime consumed inside CLR objects by the executions of the plan.
Logical I/ONumber of logical reads and writes performed by the executions of the plan.
Physical ReadsNumber of physical reads performed by the executions of the plan.

About Session and Blocker Session entities

...

The following table describes the additional information displayed in the Performance tab in the Association area.

Table 6- 12 Information displayed in the Performance tab

ColumnDescription
SPIDDisplays the system process ID. The SPID is a unique integer assigned to each user connection when the connection is made.
ProgramDisplays the program that opened the session.
In MS-SQLDisplays entity resource consumption (default: stacked bar chart) and shows entity breakdown, over the specified time period.
DatabaseDisplays the database used by session.
LoginDisplays the SQL Server or Windows login that opened the session.
Start AtDisplays the session's login time.
Completed AtDisplays when the session was completed, within the selected time period.
MachineDisplays the machine the program ran on.
Work TypeDisplays the group the session is related to, such as User Application or SAP Dialog.
UserDisplays the database user that opened the session.
Duration (Summed)Displays the time that has elapsed since the login time.
Client Process IDDisplays the process ID of the program.
About viewing In MS-SQL data for Session and Blocker Session entities

...

The following table describes the additional information displayed in the Statistics tab in the Association area.

Table 6- 13 Information displayed in the Statistics tab

ColumnDescription
SPIDDisplays the system process ID. The SPID is a unique integer assigned to each user connection when the connection is made.
CPU TimeCumulative CPU time for the entity over the selected time period.
Physical I/O OperationsTotal number of physical I/O requests performed by the selected session over the selected time period.
Memory UsageDisplays the memory consumed (in MB) by the selected session over the selected time period.
Open TransactionsDisplays the number of transactions that were opened by the selected session over the selected time period.

See “About session states” on page 36.

...

The Locked Object displays the time each object was locked. The collector determines that an object is locked according to its lock type and lock resources. The following lock types are displayed:

Table 6- 14 Lock types

TypeDescription
DatabaseLock on the entire database.
Row In TableLock on rows in the table.
Key In IndexLock on rows within the index.
Page of Database FileLock on pages in the database file.
Extent of Database FileLock on extents in the database file.
TableLock on the entire table's data and indexes.
ApplicationLock on application resource.
Compile of Stored ProcedureLock on stored procedure.
Compile of TriggerLock on stored trigger.
Compile of FunctionLock on stored function.
Index Database FileLock on the entire index.
UnknownPrecise for SQL Server is not able to identify the lock type.
Info

If the Collector identifies a blocking situation but is not able to identify the lock type and lock resource, then the sum of the wait on all locked objects will not be identical to the lock wait of the parent.

...

Info

As a rule of thumb, a healthy system should have a high Using CPU value, a 10–15% I/O Wait, a Log Wait based on the nature of the application, and the remaining states should show values that are as minimum as possible.

...


Anchor
Identifyingheavyresourceconsumers
Identifyingheavyresourceconsumers
Identifying heavy resource consumers

...

The following table shows the benefits of installing the Precise for SQL Server Interpoint extension.

Table 6- 15 Benefits of the Precise for SQL Server Interpoint extension

Type of ApplicationBenefit
SAPDrill down to the most resource-consuming SAP transaction, SAP user, SAP work type, and SAP application server name.
PeopleSoftIdentify the most resource-consuming PeopleSoft Client Machines, PeopleSoft User IDs, Tuxedo OS Users, Tuxedo domains, and work types.
SiebelIdentify the most resource-consuming Siebel business object, Siebel application, Siebel component, and Siebel server.
COM+Determine the most resource-consuming COM+ application, COM+ component, COM+ method, and COM+ interface.

To correlate SQL Server data with ERP/COM+ data

...

  1. In the Instance list, choose the item you want to analyze.
  2. In the Time Frame list, choose the period of time you want to analyze.
  3. On the View controls in the Main area, click In MS-SQL to view a breakdown of the In MS-SQL time. Check the Tempdb Wait Time component of the In MS-SQL counter.
  4. On the Association controls in the Association area, click Programs.
  5. On the Performance tab, place the cursor in the In MS-SQL column of the top program entity and check which portion of resource consumption can be attributed to tempdb wait.
  6. Drill down on the entity to focus on additional components.

 

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

...