持续收到消息:分配页面失败:FAIL_PAGE_ALLOCATION 540


8

在以下方面,我将不胜感激,我做了一些谷歌搜索,但是还没有解决这个问题。

我在SQL日志“分配页面失败:FAIL_PAGE_ALLOCATION 540”中始终收到一条消息,然后是转储,我将其添加到此问题的末尾。

供您参考,构建为:

  • 在vCenter上运行的虚拟服务器
  • Windows Server 2008 R2 64位SQL
  • Server 2012 SP1 Enterprise(11.0.2100)8GB RAM SQL Server最大和最小内存设置为6144 MB

该服务器是2节点可用性组的一部分,这是当前的主节点。

该实例托管Microsoft SharePoint的数据库

我运行了一个Perfmon跟踪24小时,该跟踪仅显示PLE在一次转储之后下降,然后又上升。没什么特别奇怪的。

SQL Server仍在运行。

从SQL日志中提取:

10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_XMLDBELEMENT (node 0)                 KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   8
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_XMLDBTYPE (node 0)                    KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   8
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_VIEWDEFINITIONS (node 0)              KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_NOTIF (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_TEMPTABLES (node 0)                   KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 448
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_XPROC (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 120
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_PHDR (node 0)                         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                              157688
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_SQLCP (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                              886856
10/03/2014 09:59:52,spid866,Unknown,CACHESTORE_OBJCP (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                              409760
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_FSCHUNKER (node 0)                   KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  48
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_LWC (node 0)                         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   8
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLLOGPOOL (node 0)                  KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                8208
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_HADR (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 688
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_XE (node 0)                          KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                              218176
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_FILETABLE (node 0)                   KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLSERVICEBROKERTRANSPORT (node 0)         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 232
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_FULLTEXT_SHMEM (node 0)              KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                      24<nl/>SM Committed                                     24<nl/>Pages Allocated                                   0
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SOSMEMMANAGER (node 0)               KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                  474880<nl/>VM Committed                                 474736<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   0
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SOSOS (node 0)                       KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 192
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SOSNODE (Total)                      KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                               71968
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SOSNODE (node 64)                    KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                2432
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SOSNODE (node 0)                     KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                               69536
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_HOST (node 0)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  24
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_XTP (node 0)                         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_XE_BUFFER (node 0)                   KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                  206208<nl/>VM Committed                                 206208<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   0
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLQERESERVATIONS (node 0)           KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                1328
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_BHF (node 0)                         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 192
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLXP (node 0)                       KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_FULLTEXT (node 0)                    KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 296
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SNI (Total)                          KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                1024
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SNI (node 64)                        KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                  16
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SNI (node 0)                         KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                1008
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLHTTP (node 0)                     KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                   8
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLSERVICEBROKER (node 0)            KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 984
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLCLR (node 0)                      KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                 1603008<nl/>VM Committed                                  28096<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                4816
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLCONNECTIONPOOL (node 0)           KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                               20464
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLSTORENG (node 0)                  KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                   23040<nl/>VM Committed                                  23040<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                               40144
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLUTILITIES (node 0)                KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                 408
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLOPTIMIZER (node 0)                KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                2224
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLQUERYEXEC (node 0)                KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                                2856
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLBUFFERPOOL (node 0)               KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                 3251552<nl/>VM Committed                                 137416<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                             3188808
10/03/2014 09:59:52,spid866,Unknown,MEMORYCLERK_SQLGENERAL (node 0)                  KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                      0<nl/>Locked Pages Allocated                            0<nl/>SM Reserved                                       0<nl/>SM Committed                                      0<nl/>Pages Allocated                               23920
10/03/2014 09:59:52,spid866,Unknown,Memory node Id = 64                              KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                                       0<nl/>VM Committed                                     20<nl/>Locked Pages Allocated                            0
10/03/2014 09:59:52,spid866,Unknown,Memory node Id = 0                               KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                               274536504<nl/>VM Committed                                6291428<nl/>Locked Pages Allocated                            0<nl/>Pages Allocated                             5393336<nl/>Pages Free                                    10504<nl/>Target Committed                            6291432<nl/>Current Committed                           6291432<nl/>Foreign Committed                                 0<nl/>Away Committed                                    0
10/03/2014 09:59:52,spid866,Unknown,Memory Manager                                   KB<nl/>---------------------------------------- ----------<nl/>VM Reserved                               274536568<nl/>VM Committed                                6291448<nl/>Locked Pages Allocated                            0<nl/>Large Pages Allocated                             0<nl/>Emergency Memory                               1024<nl/>Emergency Memory In Use                          16<nl/>Target Committed                            6291456<nl/>Current Committed                           6291448<nl/>Pages Allocated                             5393336<nl/>Pages Reserved                                 1224<nl/>Pages Free                                    10504<nl/>Pages In Use                                3093536<nl/>Page Alloc Potential                        2883352<nl/>NUMA Growth Phase                                 2<nl/>Last OOM Factor                                   2<nl/>Last OS Error                                     0
10/03/2014 09:59:52,spid866,Unknown,Process/System Counts                         Value<nl/>---------------------------------------- ----------<nl/>Available Physical Memory                 787546112<nl/>Available Virtual Memory                 8514575921152<nl/>Available Paging File                    8859074560<nl/>Working Set                              6637367296<nl/>Percent of Committed Memory in WS               100<nl/>Page Faults                               256980685<nl/>System physical memory high                       1<nl/>System physical memory low                        0<nl/>Process physical memory low                       0<nl/>Process virtual memory low                        0
10/03/2014 09:59:52,spid866,Unknown,Failed allocate pages: FAIL_PAGE_ALLOCATION 540

Answers:


5

因为摘录中只有8208个页面分配给MEMORYCLERK_SQLLOGPOOL,所以不确定kb2769594是罪魁祸首/解决方法。也没有像kb2769594示例中那样引用内部池或HADR。 https://support.microsoft.com/kb/2769594

因此,我认为罪魁祸首/修复可能是另外一回事。

令人惊讶的是,根本没有分配任何大页面-我希望服务器上有8 gb RAM的非大容量页面。SQL Server企业版?低系统内存有些令人惊讶-SQL Server之外还有另一个大型内存使用者吗?哪个操作系统版本?NTFS文件缓存是否受到良好控制?

编辑 通过Twitter还询问是否需要'锁定页面在内存中'LPIM-上面没有显示锁定的页面。


再次感谢,这些是在Windows Server 2008 R2 Enterprise上运行的专用SQL Server节点。我看不到其他任何大型内存使用者。编辑-如发推文所述,已配置LPIM,但由于更改了DBEngine Service帐户而无法使用,但尚未更新Secpol。
山姆·帕特里奇2014年

只是更新此。在重新激活“内存中的锁定页面”(通过添加正确的服务帐户!)之后,我到目前为止已停止接收该错误。我将保留24小时以确保。不错的地方!
山姆·帕特里奇2014年

自整理LPIM以来,大约30个小时没有看到该错误。这似乎有所帮助,我还将在维护周末将我们的开发和测试环境(包括其中)升级到SP2。谢谢您的帮助。
山姆·帕特里奇

3

只是提供另一个答案。我只是遇到了相同的错误消息,此问题似乎与之相关,但与其他2个答案中链接的KB中所修复的问题并不相同。

您收到的错误消息似乎表示相同,但​​就您(和我自己)而言,并不是MEMORYCLERK_SQLLOGPOOL占用大量内存,而是MEMORYCLERK_XE占用了比预期更多的内存。

在调查了哪个XE会话在哪里运行时,它提出了system_health和2个Sharepoint会话(而且您似乎也托管了sharepoint)。那两个会话记录到环形缓冲区目标(并记录很多事件)。

好消息是,根据一些博客文章,它仍在SQL Server 2012的SP2中修复,在SP3上运行一周后,XE内存管理员似乎已受到控制。

相关阅读:

从吉尔特:

此行为是由扩展事件生成的,扩展事件很可能是由Sharepoint监视并将信息记录到内存环缓冲区中创建的。禁用环形缓冲区或正确配置环形缓冲区应该可以解决此问题。

错误,这是SQL Server 2012 SP1上Sharepoint的一个已知问题。在安装SP2并重新启动实例后,问题已解决。但是,我建议继续监视内存管理员另外几个星期。

PS:在我的环境中也观察到这些错误:使用“ dbghelp.dll”版本“ 4.0.5”

编辑:我可以确认我已经有几个月没有看到与此服务器有关的任何问题了,所以看起来好像更新解决了我的问题。


2

您所用的SQL Server已修补到SP1。Microsoft已发布SQL Server 2012 SP2,并且已针对此类错误进行了修复。

根据微软文章的原因是

由于内部内存泄漏,Microsoft SQL Server 2012可能会遇到一些内存不足错误。在这种情况下,泄漏的内存将由MEMORYCLERK_SQLLOGPOOL内存职员使用,该内存职员在内部用于事务日志活动。例如,MEMORYCLERK_SQLLOGPOOL内存店员在内部用于以下事务日志活动:

主副本上的AlwaysOn更改捕获活动

辅助可用性副本上的AlwaysOn重做管理器活动

文章说,该问题已在中修复CU2/CU5 for SQL Server 2012 SP1。但是自从Microsoft发布SQL Server 2012 SP2以来,它将包含所有此类修复程序和I highly urge you to apply SP2 ASAP

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.