Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Administering
»
SQL Server Memory
SQL Server Memory
Rate Topic
Display Mode
Topic Options
Author
Message
ksr39
ksr39
Posted Friday, September 21, 2012 2:18 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, November 29, 2012 1:48 AM
Points: 34,
Visits: 142
HI Experts,
I have a small concern again on SQL Server Memory issue as one of my prod server runs on SQL Server 2005 Enterprise edition 64 Bit, on windows 2003 enterprise 64bit edition. The Ram on the machine is 32GB and allotted memory for SQL Server is 26GB but even it’s taking much than that. Now I am not able to find which is taking much memory from SQL Side.
Neither more applications nor instances are there, as it is a single instance with a 4 small databases size of 30GB. I have run some DMV sys.dm_exec_query_stats_qs and sys.dm_exec_sql_text and some more but couldn’t find any. Can you please let me know where i need to find what is happening?
Thank you in Advance
Post #1362478
anthony.green
anthony.green
Posted Friday, September 21, 2012 2:21 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
http://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/
Chapter 4 - memory management
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1362479
GilaMonster
GilaMonster
Posted Friday, September 21, 2012 3:05 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730,
Visits: 29,996
Normal, expected behaviour. Max server memory sets the size of the buffer pool. SQL also uses something called non-buffer memory which is outside the buffer pool and hence over and above max server memory.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1362492
ksr39
ksr39
Posted Friday, September 21, 2012 4:36 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, November 29, 2012 1:48 AM
Points: 34,
Visits: 142
Hi,
Thank you for the reply... how to get back the memory which is used by SQL Server as we need some for OS as well. Here my concern is that the amount of memory is taken by SQL Server is not retrieving back. And thing is we cannot clear the buffer cache as it stores the latest transactions on the buffer pool and if we delete it, the performance may de grade as the SQL Server need to get the data from the drive or disk for the data.
Please let me know what to do….
Thank you in advance.
Post #1362537
GilaMonster
GilaMonster
Posted Friday, September 21, 2012 5:30 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 3:28 PM
Points: 37,730,
Visits: 29,996
If SQL is using too much memory, reduce max server memory. Unless you're doing odd things with CLR, the non-buffer memory shouldn't be that high.
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1362570
SQL Show
SQL Show
Posted Friday, September 21, 2012 7:27 AM
Old Hand
Group: General Forum Members
Last Login: Today @ 4:14 AM
Points: 303,
Visits: 490
When you suspect high memory usage by non-bufferpool components, use this query to find out large consumer.
select Type, SUM(Multi_pages_kb)/(1024.00) Multi_MB From sys.dm_os_memory_clerks
Group by type order by 2 desc
Post #1362660
ksr39
ksr39
Posted Sunday, September 23, 2012 10:11 PM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, November 29, 2012 1:48 AM
Points: 34,
Visits: 142
Hi Gail,
Thank you for the reply, I will raise a CR and then I will reduce the ram memory for the SQL Server, but a doubt on this as how much memory do we need to allocate to the SQL Server in the Max memory.
Hi dbasql79,
Thank you for the query, When I run the query "select Type, SUM(Multi_pages_kb)/(1024.00) Multi_MB From sys.dm_os_memory_clerks
Group by type order by 2 desc " I got the below results
CACHESTORE_SQLCP -----------646.5703125
MEMORYCLERK_SOSNODE-------16.5937500
MEMORYCLERK_SQLSTORENG----12.4453125
CACHESTORE_OBJCP------------7.7578125
And yesterday when I opened the Prod SQL box I got a message that the Virtual memory was also utilized full, so what I need to do to overcome this problem
Thank You in Advance.
Post #1363320
SQL Show
SQL Show
Posted Tuesday, September 25, 2012 3:08 AM
Old Hand
Group: General Forum Members
Last Login: Today @ 4:14 AM
Points: 303,
Visits: 490
I cant see any abnormal memory usage by other components.
Please post the exact error messge. What is your page file size? Do your disk drive which hold pagefiles have enough free space?
Post #1363869
ksr39
ksr39
Posted Tuesday, September 25, 2012 3:25 AM
SSC Rookie
Group: General Forum Members
Last Login: Thursday, November 29, 2012 1:48 AM
Points: 34,
Visits: 142
Hi Dbasql79,
The page files are set to 4096MB in both of the drives on C: and D: So total allocated page file size is 8192MB and C: drive is having 17.5GB space left and D: drive is having 30.5GB of space. But the team sees the cup & memory utilization of 100%. But I couldn’t find any such on server when I check. I have a doubt, page files allocated only on the server drives or can we allocate the page files on SAN.
Is there any way where we can find memory used by the other components on the server.
thank you in advance
Post #1363877
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.