简体   繁体   English

监视SQL Server Express的限制

[英]Monitoring SQL Server Express limitations

Anyone know how can I watch my SQL Server resource usage in my windows server? 有人知道如何在Windows服务器中查看SQL Server资源使用情况吗? I'm using SQL Server 2016 express and especially I want to watch my ram usage if possible. 我正在使用SQL Server 2016 Express,尤其是如果可能的话,我想观察ram的使用情况。

For example there is maximum ram value 1410 MB per instance for SQL Server 2016 Express. 例如,SQL Server 2016 Express每个实例的最大RAM值为1410 MB。 How can I know if I am close to limitations of my SQL Server or not? 我怎么知道我是否接近SQL Server的限制?

Thank you. 谢谢。

If you are running Microsoft Windows server operating system, use the System Monitor graphical tool to measure the performance of SQL Server. 如果您正在运行Microsoft Windows Server操作系统,请使用系统监视器图形工具来衡量SQL Server的性能。 You can view SQL Server objects, performance counters, and the behavior of other objects, such as processors, memory, cache, threads, and processes. 您可以查看SQL Server对象,性能计数器以及其他对象的行为,例如处理器,内存,缓存,线程和进程。 Each of these objects has an associated set of counters that measure device usage, queue lengths, delays, and other indicators of throughput and internal congestion. 这些对象中的每一个都有一组相关的计数器,这些计数器测量设备的使用情况,队列长度,延迟以及吞吐量和内部拥塞的其他指标。

Note : System Monitor replaced Performance Monitor after Windows NT 4.0. 注意 :Windows NT 4.0之后,系统监视器替换了性能监视器。 Benefits of System Monitor 系统监控器的好处

System Monitor can be useful to monitor Windows operating system and SQL Server counters at the same time to determine any correlation between the performance of SQL Server and Windows. 系统监视器可用于同时监视Windows操作系统和SQL Server计数器,以确定SQL Server和Windows性能之间的任何关联。 For example, monitoring the Windows disk input/output (I/O) counters and the SQL Server Buffer Manager counters at the same time can reveal the behavior of the entire system. 例如,同时监视Windows磁盘输入/输出(I / O)计数器和SQL Server缓冲区管理器计数器可以揭示整个系统的行为。

System Monitor allows you to obtain statistics on current SQL Server activity and performance. 系统监视器允许您获取有关当前SQL Server活动和性能的统计信息。 Using System Monitor, you can: 使用系统监视器,您可以:

  • View data simultaneously from any number of computers. 同时从任意数量的计算机查看数据。

  • View and change charts to reflect current activity, and show counter values that are updated at a frequency that the user defines. 查看和更改图表以反映当前活动,并显示以用户定义的频率更新的计数器值。

  • Export data from charts, logs, alert logs, and reports to spreadsheet or database applications for further manipulation and printing. 将数据从图表,日志,警报日志和报告导出到电子表格或数据库应用程序,以进行进一步的操作和打印。

  • Add system alerts that list an event in the alert log and can notify you by issuing a network alert. 添加在警报日志中列出事件的系统警报,并且可以通过发出网络警报来通知您。

  • Run a predefined application the first time or every time a counter value goes over or under a user-defined value. 第一次或每次计数器值超过或低于用户定义的值时,运行预定义的应用程序。

  • Create log files that contain data about various objects from different computers. 创建日志文件,其中包含有关来自不同计算机的各种对象的数据。

  • Append to one file selected sections from other existing log files to form a long-term archive. 将其他现有日志文件中选定的部分附加到一个文件中,以形成长期归档。

  • View current-activity reports, or create reports from existing log files. 查看当前活动报告,或从现有日志文件创建报告。

  • Save individual chart, alert, log, or report settings, or the entire workspace setup for reuse. 保存单个图表,警报,日志或报告设置,或整个工作区设置以供重复使用。

    Note : System Monitor replaced the Performance Monitor after Windows NT 4.0. 注意 :Windows NT 4.0之后,系统监视器替换了性能监视器。 You can use either the System Monitor or Performance Monitor to do these tasks. 您可以使用系统监视器或性能监视器来执行这些任务。

System Monitor Performance 系统监控器性能

When you monitor SQL Server and the Microsoft Windows operating system to investigate performance-related issues, concentrate your initial efforts in three main areas: 当您监视SQL Server和Microsoft Windows操作系统以调查与性能相关的问题时,您的最初工作应集中在三个主要方面:

  • Disk activity 磁盘活动

  • Processor utilization 处理器利用率

  • Memory usage 内存使用情况

    Monitoring a computer on which System Monitor is running can affect computer performance slightly. 监视运行系统监视器的计算机可能会对计算机性能产生轻微影响。 Therefore, either log the System Monitor data to another disk (or computer) so that it reduces the effect on the computer being monitored, or run System Monitor from a remote computer. 因此,可以将系统监视器数据记录到另一个磁盘(或计算机)上,以减少对被监视计算机的影响,或者从远程计算机上运行系统监视器。 Monitor only the counters in which you are interested. 仅监视您感兴趣的计数器。 If you monitor too many counters, resource usage overhead is added to the monitoring process and affects the performance of the computer that is being monitored. 如果监视太多的计数器,则资源使用开销会添加到监视过程中,并会影响被监视计算机的性能。

To start System Monitor in Windows 在Windows中启动系统监视器

On the Start menu, point to Run, type perfmon in the Run dialog box, and then click OK. 

More information here and here and a detailed PDF here . 在此处此处有更多信息, 此处有详细的PDF

It's here what I was looking for; 这就是我要找的东西。

SELECT COUNT() AS buffer_cache_pages, COUNT() * 8 AS buffer_cache_used_KB FROM sys.dm_os_buffer_descriptors; 选择COUNT()个AS buffer_cache_pages,COUNT()* 8个AS buffer_cache_used_KB FROM sys.dm_os_buffer_descriptors;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM