当前位置:Gxlcms > 数据库问题 > 怎样获取Windows平台下SQL server性能计数器值

怎样获取Windows平台下SQL server性能计数器值

时间:2021-07-01 10:21:17 帮助过:16人阅读

\\SERVERNAME\Memory\Page Reads/sec

\\SERVERNAME\Memory\Page Writes/sec

\\SERVERNAME\Paging File(_Total)\% Usage

\\SERVERNAME\PhysicalDisk(_Total)\% Disk Time

\\SERVERNAME\PhysicalDisk(_Total)\Avg. Disk Queue Length

\\SERVERNAME\PhysicalDisk(_Total)\Avg. Disk sec/Read

\\SERVERNAME\PhysicalDisk(_Total)\Avg. Disk sec/Transfer

\\SERVERNAME\PhysicalDisk(_Total)\Avg. Disk sec/Write

\\SERVERNAME\Processor(_Total)\% Privileged Time

\\SERVERNAME\Processor(_Total)\% Processor Time

\\SERVERNAME\Processor(_Total)\% User Time

\\SERVERNAME\SQLServer:Access Methods\Page Splits/sec

\\SERVERNAME\SQLServer:Buffer Manager\Buffer cache hit ratio

\\SERVERNAME\SQLServer:Buffer Manager\Page life expectancy

\\SERVERNAME\SQLServer:Buffer Manager\Page lookups/sec

\\SERVERNAME\SQLServer:General Statistics\User Connections

\\SERVERNAME\SQLServer:Memory Manager\Memory Grants Pending

\\SERVERNAME\SQLServer:SQL Statistics\Batch Requests/sec

\\SERVERNAME\SQLServer:SQL Statistics\SQL Compilations/sec

\\SERVERNAME\SQLServer:SQL Statistics\SQL Re-Compilations/sec

\\SERVERNAME\SQLServer:Wait Statistics(*)\Memory grant queue waits

\\SERVERNAME\SQLServer:Wait Statistics(*)\Network IO waits

\\SERVERNAME\SQLServer:Wait Statistics(*)\Page IO latch waits

\\SERVERNAME\SQLServer:Wait Statistics(*)\Page latch waits

\\SERVERNAME\System\Processor Queue Length

 技术分享

Perform a global replace of the SERVERNAME to match the actual server name for the SQL Server that is to be monitored.  Save the file and Close.

--------------------------------------------------------------分割线---------------------------------------------------------------------------

Go to the Start menu -> Command Prompt.

 技术分享

Change the directory to the location where the TypePerf directory was created.

At the command prompt, modify the next command to match the information for the SQL Server being monitored:

TYPEPERF -cf F:\TypePerf\TypePerf_SQLCounters.txt -f csv -o F:\TypePerf\MSLAB2191_yyyymmdd_hhmm.csv -s BRTC_MSLAB2191

-cf           Name of the file that contains the list of counters to capture

-f             format of the log file, defaults to csv

-o            Path\name of output file

-s            Name of server to collect the counters from if one does not exist in the counter file

 

EXAMPLE:

TYPEPERF -cf F:\TypePerf\TypePerf_SQLCounters.txt -f csv -o F:\TypePerf\MSLAB2191_20161020_2025.csv -s BRTC_MSLAB2191

Press Enter to start the counter collection…  

技术分享

The [\]   will run the command and capture the counters every second.

Verify the file you specified for the output was created and is growing:

技术分享

-------------------------------------------------------分割线-----------------------------------------------------------------------

When you have completed the SQL Server test, Press CTRL-C to stop the counter collection.

 技术分享

Close the Command Prompt window.

 

怎样获取Windows平台下SQL server性能计数器值

标签:recommend   requests   complete   monitor   request   director   expec   line   ret   

人气教程排行