SQL Server-Resource Monitor worker appears to be non-yielding on Node 0

來源:互聯網
上載者:User

標籤:sed   blog   val   issues   oge   nod   2008 r2   indent   http   

Refer to https://support.microsoft.com/it-it/help/2216485/fix-resource-monitor-enters-a-non-yielding-condition-on-a-server-that?spid=1044&sid=1229%3Fspid%3D1044&sid=1229

 

CauseIn SQL Server 2008 and SQL Server 2008 R2, the Resource Monitor task wakes up periodically to listen to and notify subscribers of low, high, or steady memory events. These memory events may be external to SQL Server (notifications that are system-wide from the operating system) or internal to SQL Server (notifications that are process-wide from the buffer pool). When such notifications occur, various memory consumers trim their memory usage.

Note Consumers can be memory clerks that are cache stores, user stores, or object stores. 

If certain memory consumers use a large amount of memory, the trimming that the consumers perform may take a long time to finish. 

The Scheduler Monitor task that runs every five seconds checks whether Resource Monitor has moved from one consumer to another in the past 60 seconds. When the Scheduler Monitor detects that the Resource Monitor has not moved past a consumer for 60 seconds, the Schedule Monitor interprets this as the Resource Monitor entering a non-yielding state, and then the Schedule Monitor logs the error message that is mentioned in the "Symptoms" section. 

These messages are also raised if the rate at which the Resource Monitor frees memory is less than 2 MB every five seconds.

These messages are only an indication that the Resource Monitor is busy cleaning up large consumers, and these messages do not necessarily indicate a problem with the Resource Monitor itself.
ResolutionStarting with Microsoft SQL Server 2008 Service Pack 2 and Microsoft SQL Server 2008 R2 Service Pack 1, the non-yielding Resource Monitor message was extended to easily isolate the memory clerk that leads to the non-yielding condition.

The new message will resemble the following:Resource Monitor (0x9b0) Worker 0x0000000003A2C1C0 appears to be non-yielding on Node Node_#. Memory freed: 0 KB. Last wait: lastwaittype. Last clerk: type clerk_type, name clerk_name. Approx CPU Used: kernel 0 ms, user 0 ms, Interval: Interval_value.The following are descriptions of the various fields that are used in this message:
  • Memory freed: This is how much memory is freed by Resource Monitor for the specified interval as measured in kilobytes. If the rate at which the memory is freed does not exceed 2 MB every five seconds, the Scheduler Monitor detects this condition as a non-yielding condition.
  • Last wait: This is the last wait type for the Resource Monitor thread. You can use this field together with theApprox CPU Used field to identify whether the Resource Monitor thread is running or waiting for a significant part of the interval.
  • Last clerk: This is the type and name of the memory clerk that was trimming its memory when the non-yielding condition occurred.
  • Approx CPU Used: This is the kernel and user time that is used by Resource Monitor as measured in milliseconds. You can use this together with other fields to verify that Resource Monitor is making progress during the specified interval.
  • Interval: This is the time that elapsed since the last clerk was notified as measured in milliseconds.
You can use this message in addition to the RING_BUFFER_RESOURCE_MONITOR entries from the time of the message to identify the source of the low memory notification.

For more information about how to interpret the RING_BUFFER_RESOURCE MONITOR. visit the following MSDN blog:How It Works: What are the RING_BUFFER_RESOURCE_MONITOR telling me?For more information about how SQL Server listens and responds to memory notifications and about the Resource Monitor task and troubleshooting memory-related performance issues in SQL Server, refer to the following MSDN blog articles:

SQL Server-Resource Monitor worker appears to be non-yielding on Node 0

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.