Solved

sql server 2008 memory issue

Posted on 2011-09-27
4
372 Views
Last Modified: 2012-05-12
Hi,

I have sql server 2008 R2 which was installed on windows 2008 R2 box and it consists of 32 GB of Ram and we allocated 28GB to sqlserver with min and max server setting.some times memory is pegging to 100%.i would like to know the sql server utilization alone  at any point of time  without using perfmon and task manger.do we have any qurey(DMV/DMF) to identify this?

Thanks in advance
0
Comment
Question by:chandradineshbabu
4 Comments
 
LVL 15

Expert Comment

by:Eyal
ID: 36714443
0
 
LVL 18

Expert Comment

by:deighton
ID: 36715699
do you mean it reaches the 28GB max that you set?  I don't think that is abnormal, SQL server is designed to grab memory like that and release it back very quickly if other apps require it.
0
 
LVL 39

Accepted Solution

by:
lcohan earned 500 total points
ID: 36717297
Sure please see queries below and more about SQL memory usage at:

http://sqlblog.com/blogs/jonathan_kehayias/archive/2009/08/24/troubleshooting-the-sql-server-memory-leak-or-understanding-sql-server-memory-usage.aspx


DBCC MEMORYSTATUS

--find AWE used memory
select  
    sum(awe_allocated_kb) / 1024 as [AWE allocated, Mb]  
from  
    sys.dm_os_memory_clerks

--grouped
select  
    type, sum(multi_pages_kb) total_kb
from  
    sys.dm_os_memory_clerks  
where  
    multi_pages_kb != 0  
group by type

0
 

Author Closing Comment

by:chandradineshbabu
ID: 37028992
it helped me a lot
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now