创建性能基线

本文涉及的产品
云数据库 RDS SQL Server,独享型 2核4GB
简介:
Establishing a Performance Baseline

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Baseline performance monitoring involves establishing a performance baseline for your system. A performance baseline includes a single performance chart accompanied by an interpretation of the results, based on your environment. Many elements of the chart, such as the timeframe, vary according to the environment. You can use System Monitor in Windows Server 2003 to establish your performance baseline. The System Monitor chart can be created in real time or based on a performance log file. It is recommended that you base your chart on a log file, because this allows you to record statistics for an extended period.

When establishing your performance baseline, you must select the sampling interval and the server from which to monitor. The sampling interval determines the amount of disk space that your baseline requires. (Using performance counters on the server does not add much overhead to the server running SQL Server.) If you find that your baseline data is taking up too much disk space, you can use a larger interval between data samples. The larger the sampling interval you use, however, the less accurate your graph will be.

You can monitor remotely; however, use of the counters across a network connection for an extended period of time can congest traffic on your network. If you have disk space on your server for the performance log files, it is recommended that you record performance log information locally.

Because of performance impacts related to the number of counters being sampled and the frequency with which sampling occurs, it is important to test the number of counters and the frequency of data collection so you can determine the balance that meets the needs of your environment while still providing useful performance information. For the initial performance baseline, however, it is recommended that you use the highest number of counters possible and the highest frequency available.

Table 5 lists the recommended performance counters to include in your performance baseline.

Table 5   Performance Counters for Baseline Performance Monitoring

 

Object\Counter Definition Recommendations

Memory\Pages/sec

The number of pages read from or written to disk to resolve hard page faults. This counter serves as a primary indicator of the types of faults that cause system-wide delays.

Although it is normal to have some spikes, this counter generally remains at or close to zero.

Network Interface\Bytes total/sec

Number of bytes traveling over the network interface per second. This counter only reflects the local network connection.

If this value stays below 50 percent of your available network bandwidth, the network adapter on the server running SQL Server 2000 is not likely to cause any performance bottlenecks.

PhysicalDisk\Disk Transfers/sec

The rates of read and write operations on the disk. Define a counter for each physical disk on the server.

PhysicalDisk\Avg. Disk Queue Length

The average numbers of both read and write requests that were queued for the selected disk during the sample interval.

The number of requests should not exceed two times the number of spindles constituting the physical disk. If the number of requests is too high, you can add additional disks or replace the existing disks with faster disks.

SQLServer:Memory Manager\Total Server Memory

The total memory in use by SQL Server 2000.

Add memory to the server if this value is generally higher than the amount of physical memory in the server.

SQLServer:Access Methods\Full Scans/sec

The number of unrestricted full scans. These can either be base table or full index scans.

SQLServer:Buffer Manager\Buffer Cache Hit Ratio

The percentage of pages that were found in the buffer pool without having to incur a read from disk.

When this percentage is high, your server is operating at optimal disk I/O efficiency. If this value decreases over time, you might consider adding physical memory to your server.

SQLServer:Databases\Log Growths

The total number of log growths for the selected database.

Run against your application database instance.

SQLServer:Databases Application Database\Percent Log Used

The percent of space in the log that is in use.

Run against your application database instance.

SQLServer:Databases Application Database\Transactions/sec

The number of transactions started for the database.

Run against your application database instance.

SQLServer:General Statistics\User Connections

The number of users connected to the system.

Research any dramatic shifts in this value.

SQLServer:Latches\Average Latch Wait Time

The average latch wait time, in milliseconds, for latch requests that had to wait.

If this number is high, your server might have resource limitations.

SQLServer:Locks\Average Wait Time

The average amount of wait time, in milliseconds, for each lock request that resulted in a wait.

SQLServer:Locks\Lock Waits/sec

The number of lock requests that could not be satisfied immediately and required the caller to wait before the lock was granted.

SQLServer:Locks\Number of Deadlocks/sec

The number of lock requests that resulted in a deadlock.

SQLServer:Memory Manager\Memory Grants Pending

The current number of processes waiting for a workspace memory grant.

For information about how to use System Monitor to create performance charts and logs, see “Monitoring performance” in Help and Support Center for Windows Server 2003.




    本文转自 Fanr_Zh 博客园博客,原文链接:http://www.cnblogs.com/Amaranthus/archive/2011/04/10/2011670.html,如需转载请自行联系原作者



相关实践学习
使用SQL语句管理索引
本次实验主要介绍如何在RDS-SQLServer数据库中,使用SQL语句管理索引。
SQL Server on Linux入门教程
SQL Server数据库一直只提供Windows下的版本。2016年微软宣布推出可运行在Linux系统下的SQL Server数据库,该版本目前还是早期预览版本。本课程主要介绍SQLServer On Linux的基本知识。 相关的阿里云产品:云数据库RDS SQL Server版 RDS SQL Server不仅拥有高可用架构和任意时间点的数据恢复功能,强力支撑各种企业应用,同时也包含了微软的License费用,减少额外支出。 了解产品详情: https://www.aliyun.com/product/rds/sqlserver
相关文章
|
1月前
|
测试技术
性能场景之压测策略设计
【2月更文挑战第19天】性能场景之压测策略设计
295 4
性能场景之压测策略设计
|
4天前
|
缓存 算法 测试技术
优化 C#编程性能的策略
【4月更文挑战第20天】优化C#性能策略包括:选择合适算法和数据结构,避免频繁对象创建,缓存常用数据,减少内存分配,使用异步编程,优化数据库操作(如合理查询和使用索引),利用多线程并行处理,精简代码,使用性能分析工具,硬件升级,以及进行性能测试。综合应用这些策略可提升程序性能和响应性。
|
4月前
|
机器学习/深度学习 算法 测试技术
RAG应用程序的12种调优策略:使用“超参数”和策略优化来提高检索性能
本文从数据科学家的角度来研究检索增强生成(retrieve - augmented Generation, RAG)管道。讨论潜在的“超参数”,这些参数都可以通过实验来提高RAG管道的性能。与本文还将介绍可以应用的不同策略,这些策略虽然不是超参数,但对性能也会产生很大的影响。
215 1
|
10月前
|
JSON 测试技术 数据格式
性能测试(16)——参数关联
当请求之间有依赖关系,比如一个请求的入参是另一个请求返回的数据,这时候就需要用到关联处理。 JMeter可以通过“后置处 理器”中的一些组件来处理关联。 常用的关联方法: 正则表达式提取器 XPath提取器 JSON提取器
102 0
性能测试(16)——参数关联
|
云安全 监控 安全
配置基线对于数据安全的影响
配置基线对于数据安全的影响
148 0
LanguageTool性能简单测试分析
LanguageTool性能简单测试分析
88 0
|
机器学习/深度学习 监控 安全
监控模型在监控模型在生产环境的性能(Arize)
随着机器学习基础设施的成熟,对模型监控的需求激增。不幸的是,这种不断增长的需求并没有形成一个万无一失的剧本,向团队解释如何来衡量模型的性能。
|
测试技术 数据库
(性能测试、负载测试、强度测试、容量测试)概念区分
(性能测试、负载测试、强度测试、容量测试)概念区分
|
大数据 开发者
R 实例——预测海藻数量之模型的精简和调优| 学习笔记
快速学习 R 实例——预测海藻数量之模型的精简和调优
129 0