简体   繁体   English

Sql 服务器消耗的 memory 超过最大 memory 限制

[英]Sql server consuming more memory than max memory limit

Sqlserver.exe showing memory greater than max memory limit lock pages also enabled its confusing Sqlserver.exe 显示 memory 大于 max memory 限制锁页也启用了它的混乱

AS stated here如此所述

SQL Servers max memory setting defines the limits for buffer pool usage only. SQL 服务器最大 memory 设置仅定义缓冲池使用的限制。 There will be variable but significant allocations required over and above that limit.在该限制之外,将需要进行可变但重要的分配。

Jonathan Kehayias's , Christian Bolton and John Samson have level 300/400 posts on the topic. Jonathan KehayiasChristian BoltonJohn Samson在该主题上有 300/400 级的帖子。 Brent Ozar has an easier to read article that might be a better place to start. Brent Ozar有一篇更易于阅读的文章,可能是一个更好的起点。

Also related: SQL Server 2008 R2 “Ghost Memory”还相关: SQL Server 2008 R2 “Ghost Memory”

Min & Max Server Memory最小和最大服务器 Memory

Microsoft SQL Server Management Studio → Right Click the Server → Properties →Memory → Server Memory Options → Minimum server memory (In MB): = 0 and Maximum server memory (In MB): = 2147483647 Microsoft SQL Server Management Studio → Right Click the Server → Properties →Memory → Server Memory Options → Minimum server memory (In MB): = 0 and Maximum server memory (In MB): = 2147483647

Configure this memory allocation Based on the RAM installed in the DB Server.根据安装在 DB 服务器中的 RAM 配置此 memory 分配。

For Ex:例如:

IF DB server is installed with 6 GB of RAM , then maintain the 20% breadth space for the OS installed in the server.如果 DB 服务器安装了6 GB 的 RAM ,则为安装在服务器中的操作系统保持20%的宽度空间。 For 6 GB of RAM, Maximum server memory (In MB) will be = 4915 for the SQL server.对于 6 GB RAM,SQL 服务器的最大服务器 memory(以 MB 为单位)将为 = 4915

Right Click the Server → Properties →Security → Login Auditing → Enable the Failed logins only.右键单击服务器→属性→安全→登录审核→仅启用失败的登录。 This option will avoid the log write and memory log space will be saved.此选项将避免日志写入,并且将节省 memory 日志空间。

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

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