Skip to content

Commit 773c865

Browse files
authored
Merge pull request #4247 from rrg92/patch-3
Added info about how counters work
2 parents 4bfadfc + f225cdd commit 773c865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/relational-databases/performance-monitor/use-sql-server-objects.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ ms.author: jrasnick
3838

3939
Some objects have several instances if multiple resources of a given type exist on the computer. For example, the **Processor** object type will have multiple instances if a system has multiple processors. The **Databases** object type has one instance for each database on [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. Some object types (for example, the **Memory Manager** object) have only one instance. If an object type has multiple instances, you can add counters to track statistics for each instance, or in many cases, all instances at once. Counters for the default instance appear in the format **SQLServer:**_\<object name>_. Counters for named instances appear in the format **MSSQL$**_\<instance name>_**:**_\<counter name>_ or **SQLAgent$**_\<instance name>_**:**_\<counter name>_.
4040

41+
[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] performance counter values are generated using the Windows Performance Counter (WPC) engine. Some counter values are not calculated directly by [!INCLUDE[ssDEnoversion](../../includes/ssdenoversion-md.md)]. The [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] provides base values to the WPC engine, which will perform the required calculations (like percentages). The [sys.dm_os_performance_counters &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-os-performance-counters-transact-sql.md) dynamic management view provides all counters with the original value generated by [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. The `cntr_type` column indicates the type of counter. How the WPC engine processes [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] counter values depends on this type. For more information about performance counter types, see the [WMI documentation](https://docs.microsoft.com/windows/win32/wmisdk/wmi-performance-counter-types).
42+
4143
By adding or removing counters to the chart and saving the chart settings, you can specify the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] objects and counters that are monitored when System Monitor is started.
4244

4345
You can configure System Monitor to display statistics from any [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] counter. In addition, you can set a threshold value for any [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] counter and then generate an alert when a counter exceeds a threshold. For more information about setting an alert, see [Create a SQL Server Database Alert](../../relational-databases/performance-monitor/create-a-sql-server-database-alert.md).
44-
45-
> [!TIP]
46-
> You can also return the performance counter values by querying the [sys.dm_os_performance_counters &#40;Transact-SQL&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-os-performance-counters-transact-sql.md) dynamic management view.
46+
4747

4848
> [!NOTE]
4949
> [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] statistics are displayed only when an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is installed. If you stop and restart an instance of [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)], the display of statistics is interrupted and resumes automatically. Also note that you will see [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] counters in the System Monitor snap-in even if [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is not running. On a clustered instance, performance counters only function on the node where [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] is running.

0 commit comments

Comments
 (0)