Continue recebendo a mensagem: falha ao alocar páginas: FAIL_PAGE_ALLOCATION 540

8

Gostaria de receber ajuda com o seguinte, eu pesquisei no Google, mas não consegui resolver esse problema.

Continuo recebendo uma mensagem no log do SQL 'Falha na alocação de páginas: FAIL_PAGE_ALLOCATION 540', seguida de um dump que adicionarei ao final desta pergunta.

Para sua informação, a construção é:

  • Servidor virtual em execução no vCenter
  • SQL Server de 64 bits do Windows Server 2008 R2
  • Server 2012 SP1 Enterprise (11.0.2100) 8 GB de RAM As memórias Max e Min do SQL Server estão definidas para 6144 MB

O servidor faz parte de um grupo de disponibilidade de 2 nós, este é o nó principal atual.

Esta instância está hospedando os bancos de dados do Microsoft SharePoint

Corri um rastreio de Perfmon por 24 horas, que apenas revelou o PLE caindo após um dos lixões e depois subindo de volta. Nada mais particularmente estranho.

O SQL Server ainda está em execução.

EXTRATO DO LOG DO 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
Sam Partridge
fonte

Respostas:

5

Como existem apenas 8208 páginas alocadas para MEMORYCLERK_SQLLOGPOOL no trecho, não tenho certeza se kb2769594 é o culpado / correção. Também não há referência ao pool interno ou HADR como no exemplo kb2769594. https://support.microsoft.com/kb/2769594

Então eu acho que o culpado / correção pode ser outra coisa.

Surpreendente que nenhuma página grande seja alocada - eu esperaria algumas que não fossem booleanas com 8 GB de RAM no servidor. Edição do SQL Server Enterprise? Pouca memória do sistema é algo surpreendente - existe outro consumidor de memória grande ao lado do SQL Server? Qual versão do sistema operacional? O cache do arquivo NTFS está bem controlado?

O Via Twitter também perguntou se o LPIM 'lock pages in memory' é esperado - nenhuma página bloqueada indicada acima.

sql_handle
fonte
Obrigado novamente, esses são nós dedicados do SQL Server em execução no Windows Server 2008 R2 Enterprise. Não existem outros consumidores de memória grande que eu possa ver. editar - como twittou, o LPIM foi configurado, mas não estava funcionando, pois a conta do DBEngine Service havia sido alterada, mas a Secpol não havia sido atualizada.
Sam Partridge
Apenas para atualizar isso. Depois de reinstalar o Lock Pages In Memory (adicionando a conta de serviço correta!), Até agora, parei de receber o erro. Vou deixar 24 horas para ter certeza. Local agradável embora!
Sam Partridge
Não vejo o erro há cerca de 30 horas desde a classificação do LPIM. Isso parece ter ajudado, também atualizarei nossos ambientes de desenvolvimento e teste (dos quais estão incluídos) para o SP2 no fim de semana de manutenção. Obrigado pela ajuda.
Sam Partridge
3

Apenas para fornecer outra resposta. Acabei de encontrar as mesmas mensagens de erro e esse problema parece estar relacionado, mas não o mesmo problema corrigido no KB vinculado nas outras 2 respostas.

As mensagens de erro que você recebe parecem indicar o mesmo, mas no seu caso (e no meu) não MEMORYCLERK_SQLLOGPOOLestá consumindo muita memória, mas MEMORYCLERK_XEocupando mais memória do que você esperaria.

Após a investigação de quais sessões XE estavam sendo executadas, surgiram as sessões system_health e 2 Sharepoint (e você parece hospedar também o sharepoint). Essas duas sessões registram no destino do buffer de anel (e registram vários eventos).

A boa notícia é que, de acordo com algumas postagens do blog, ele ainda está corrigido no SP2 para SQL Server 2012 e depois de uma semana no SP3, o funcionário da memória XE parece estar sob controle.

Leitura relacionada:

Partida Geert:

Esse comportamento é gerado por eventos estendidos criados provavelmente pelas informações de monitoramento e registro do Sharepoint nos buffers do anel de memória. Desativar buffers de anel ou uma configuração correta de buffers de anel deve resolver esse problema.

Errado, esse é um problema conhecido do Sharepoint no SQL Server 2012 SP1. Depois de instalar o SP2 e reiniciar a instância, o problema foi resolvido. No entanto, sugeri continuar monitorando os funcionários da memória por mais algumas semanas.

PS: esses erros também foram observados no meu ambiente: Usando a versão 'dbghelp.dll' '4.0.5'

Editar: posso confirmar que não vejo problemas com este servidor há meses, então parece que a atualização solucionou meu problema.

Tom V - tente topanswers.xyz
fonte
2

O SQL Server no seu caso está corrigido SP1. A Microsoft lançou o SQL Server 2012 SP2 e houve uma correção para esse tipo de erro.

Conforme o artigo da Microsoft, o motivo é

O Microsoft SQL Server 2012 pode enfrentar alguns erros de falta de memória devido a um vazamento de memória interna. Nessa situação, a memória vazada é consumida pelo caixeiro de memória MEMORYCLERK_SQLLOGPOOL usado internamente para atividades de log de transações. Por exemplo, o caixeiro de memória MEMORYCLERK_SQLLOGPOOL é usado internamente para as seguintes atividades de log de transações:

Atividades de captura de alterações AlwaysOn nas réplicas primárias

AlwaysOn refazer atividades do gerenciador nas réplicas de disponibilidade secundária

O artigo diz que o problema foi corrigido CU2/CU5 for SQL Server 2012 SP1. Mas desde que a Microsoft lançou o SQL Server 2012 SP2, isso conteria todas essas correções e I highly urge you to apply SP2 ASAP.

Shanky
fonte