﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Need a Memory Utilization alert SQL Server 2008 r2 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 01:01:24 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Need a Memory Utilization alert SQL Server 2008 r2</title><link>http://www.sqlservercentral.com/Forums/Topic1364365-1550-1.aspx</link><description>Like it says in the article:[quote]To use sys.dm_os_buffers as part of a monitoring process, you just have to look for the two events, RESOURCE_MEMPHYSICAL_LOW or RESOURCE_MEMVIRTUAL_LOW. These are available in the ResourceMonitor/Notification property within the XML. They are an absolute indicator of a low memory condition on your machine, so if you get the alert, you were low on either external/OS/physical memory, or internal/SQL Server/virtual memory.[/quote]If you filter for those two events, when either one occurs, you have low memory of some type. To set up the alert, you'll need to connect your PowerShell script to email you in the event you get those results.</description><pubDate>Thu, 27 Sep 2012 04:30:10 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: Need a Memory Utilization alert SQL Server 2008 r2</title><link>http://www.sqlservercentral.com/Forums/Topic1364365-1550-1.aspx</link><description>Hello Grant,I ran the code below from your simple talk article. But do not see how an alert is generated. Could you help me.WITH    RingBuffer          AS (SELECT    CAST(dorb.record AS XML) AS xRecord,                        dorb.TIMESTAMP              FROM      sys.dm_os_ring_buffers AS dorb              WHERE     dorb.ring_buffer_type = 'RING_BUFFER_RESOURCE_MONITOR'             )    SELECT  xr.value('(ResourceMonitor/Notification)[1]', 'varchar(75)') AS RmNotification,            xr.value('(ResourceMonitor/IndicatorsProcess)[1]', 'tinyint') AS IndicatorsProcess,            xr.value('(ResourceMonitor/IndicatorsSystem)[1]', 'tinyint') AS IndicatorsSystem,            DATEADD(ss,                    (-1 * ((dosi.cpu_ticks / CONVERT (FLOAT, (dosi.cpu_ticks / dosi.ms_ticks)))                           - rb.TIMESTAMP) / 1000), GETDATE()) AS RmDateTime,            xr.value('(MemoryNode/TargetMemory)[1]', 'bigint') AS TargetMemory,            xr.value('(MemoryNode/ReserveMemory)[1]', 'bigint') AS ReserveMemory,            xr.value('(MemoryNode/CommittedMemory)[1]', 'bigint') AS CommitedMemory,            xr.value('(MemoryNode/SharedMemory)[1]', 'bigint') AS SharedMemory,            xr.value('(MemoryNode/PagesMemory)[1]', 'bigint') AS PagesMemory,            xr.value('(MemoryRecord/MemoryUtilization)[1]', 'bigint') AS MemoryUtilization,            xr.value('(MemoryRecord/TotalPhysicalMemory)[1]', 'bigint') AS TotalPhysicalMemory,            xr.value('(MemoryRecord/AvailablePhysicalMemory)[1]', 'bigint') AS AvailablePhysicalMemory,            xr.value('(MemoryRecord/TotalPageFile)[1]', 'bigint') AS TotalPageFile,            xr.value('(MemoryRecord/AvailablePageFile)[1]', 'bigint') AS AvailablePageFile,            xr.value('(MemoryRecord/TotalVirtualAddressSpace)[1]', 'bigint') AS TotalVirtualAddressSpace,            xr.value('(MemoryRecord/AvailableVirtualAddressSpace)[1]',                     'bigint') AS AvailableVirtualAddressSpace,            xr.value('(MemoryRecord/AvailableExtendedVirtualAddressSpace)[1]',                     'bigint') AS AvailableExtendedVirtualAddressSpace    FROM    RingBuffer AS rb            CROSS APPLY rb.xRecord.nodes('Record') record (xr)            CROSS JOIN sys.dm_os_sys_info AS dosi    ORDER BY RmDateTime DESC; thanksBrian</description><pubDate>Wed, 26 Sep 2012 14:39:18 GMT</pubDate><dc:creator>bmanning 59285</dc:creator></item><item><title>RE: Need a Memory Utilization alert SQL Server 2008 r2</title><link>http://www.sqlservercentral.com/Forums/Topic1364365-1550-1.aspx</link><description>You can check the ring buffers for one of three different error messages, Out of Memory messages, Low Physical memory or Low Virtual memory. You can also use the DBCC MEMORY_STATUS to compare target committed to current committed. I go over all these with example scripts in [url=http://www.simple-talk.com/sql/database-administration/why-is-that-sql-server-instance-under-stress/]this Simple-Talk article[/url]. Just run these scripts from PowerShell if that's what you need.</description><pubDate>Wed, 26 Sep 2012 03:49:57 GMT</pubDate><dc:creator>Grant Fritchey</dc:creator></item><item><title>RE: Need a Memory Utilization alert SQL Server 2008 r2</title><link>http://www.sqlservercentral.com/Forums/Topic1364365-1550-1.aspx</link><description>I recommend using Page Faults (not a SQL Server specific indicator) to indicate when the memory is falling to the page/swap file as your indicator.  There's usually a little traffic there even under no pressure so you'll want to check your system for tolerance levels while it's running 'cleanly'.</description><pubDate>Tue, 25 Sep 2012 17:27:18 GMT</pubDate><dc:creator>Evil Kraig F</dc:creator></item><item><title>Need a Memory Utilization alert SQL Server 2008 r2</title><link>http://www.sqlservercentral.com/Forums/Topic1364365-1550-1.aspx</link><description>I Need a Memory Utilization alert SQL Server 2008 r2. I am not sure which alert in sql server will statisfy for Memory Utilization. I would be interested in a powershell scipt that gives an alert if memory resources are maxed out.</description><pubDate>Tue, 25 Sep 2012 17:24:38 GMT</pubDate><dc:creator>bmanning 59285</dc:creator></item></channel></rss>