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 and SQL Server R2, the Resource Monitor task wakes up periodically to listen to and notify Su Bscribers of low, high, or steady memory events. These memory events external to SQL Server (notifications that is system-wide from the operating system) or intern Al to SQL Server (Notifications is process-wide from the buffer pool). When such notifications occur, various memory consumers trim their memory usage.
Note consumers can is memory clerks that is cache stores, user stores, or object stores.
If certain memory consumers use a large amount of memory, the trimming that the consumers perform could take a long time to Finish.
The Scheduler Monitor task that runs every five seconds checks whether Resource Monitor have moved from one consumer to Ano Ther in the past seconds. When the Scheduler Monitor detects that the Resource monitor have not moved past a consumer for seconds, the Schedule Mo Nitor interprets this as the Resource monitor entering a non-yielding state, and then the Schedule monitor logs the error The message is mentioned in the ' Symptoms ' section.
These messages was also raised if the rate at which the Resource Monitor frees memory was less than 2 MB every five seconds .
These messages was only a indication that the Resource Monitor was busy cleaning up large consumers, and these messages do Not necessarily indicate a problem with the Resource Monitor itself.Resolutionstarting with Microsoft SQL Server Service Pack 2 and Microsoft SQL Server 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 would resemble the Following:resource Monitor (0x9b0) Worker 0x0000000003a2c1c0 appears to be non-yielding On Nodenode_#. 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 is descriptions of the various fields, that is used in this message:
- Memory Freed:this is what much memory is freed by Resource Monitor for the specified interval as measured in kilobytes. If the rate at which the memory are freed does not exceed 2 MB every five seconds, the Scheduler Monitor detects this Condi tion as a non-yielding condition.
- Last Wait:this was 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 Runni ng or waiting for a significant part of the interval.
- Last clerk:this are the type and name of the memory clerk that was trimming it memory when the non-yielding condition OCC Urred.
- Approx CPU used:this is the kernel and user time, which 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 interv Al.
- Interval:this is the time, the elapsed since the last clerk were notified as measured in milliseconds.
You can use this message on 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 on how to interpret the Ring_buffer_resource MONITOR. Visit the following MSDN blog:how It Works:what is the ring_buffer_resource_monitor telling me? For more information about what 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 being non-yielding on Node 0