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 2008
»
SQL Server Newbies
»
SQL Server consuming 90% Memory
SQL Server consuming 90% Memory
Rate Topic
Display Mode
Topic Options
Author
Message
jitendra.padhiyar
jitendra.padhiyar
Posted Monday, December 24, 2012 5:07 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
Hello Masters,
My sql server has 12GB of RAM, I got alerts from windows team that SQL Server consuming about 90% of memory ! SQL server is connected with many applications so its not possible for me to restart services of sql server.
Is there anyway that it will release memory without restart ?
I think AWE will help me, but i am not sure whether it will be in effect without restarting sql server. Please guide me how can I release memory without restarting sql server.
Post #1399863
GilaMonster
GilaMonster
Posted Monday, December 24, 2012 5:37 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:37 PM
Points: 37,687,
Visits: 29,944
That's perfectly normal, expected behaviour. SQL will use as much memory as it can to improve performance.
If it's using too much, lower max server memory, and inform the windows team that SQL should be using lots of memory, and for SQL Server machines, lots of free memory would be a concern
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 #1399869
Bhuvnesh
Bhuvnesh
Posted Wednesday, December 26, 2012 12:10 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
jitendra.padhiyar (12/24/2012)
I think AWE will help me, but i am not sure whether it will be in effect without restarting sql server. Please guide me how can I release memory without restarting sql server.
ONLy if you are using 32 bit machine and also it requires sql server restart. see the link
http://msdn.microsoft.com/en-us/library/ms190673(v=sql.105).aspx
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1400156
jitendra.padhiyar
jitendra.padhiyar
Posted Wednesday, January 09, 2013 9:48 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
GilaMonster (12/24/2012)
If it's using too much, lower max server memory
Is it dynamic change ? I mean if I will lower down the max memory, Will SQL server will release memory OR I need sql services restart?
Post #1405164
SQLRNNR
SQLRNNR
Posted Wednesday, January 09, 2013 10:34 PM
SSCoach
Group: General Forum Members
Last Login: Yesterday @ 1:07 PM
Points: 18,733,
Visits: 12,332
jitendra.padhiyar (1/9/2013)
GilaMonster (12/24/2012)
If it's using too much, lower max server memory
Is it dynamic change ? I mean if I will lower down the max memory, Will SQL server will release memory OR I need sql services restart?
You can adjust that setting without a restart. The memory use will start to cycle down as queries complete and memory can be freed.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #1405173
Bhuvnesh
Bhuvnesh
Posted Thursday, January 10, 2013 12:17 AM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
jitender, are you still experiencing same memory issues ?
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1405232
jitendra.padhiyar
jitendra.padhiyar
Posted Friday, January 11, 2013 2:50 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Thursday, April 18, 2013 3:09 AM
Points: 167,
Visits: 440
Thanks Jason ! I did changes in max memory, lower down 30GB Max memory to 28GB. and yes without restart it release some memory. Before it was consuming 31.7GB out of 32GB but now its consuming 30GB!
Still have doubts... !!
I have allocated max Memory to 28GB, than why its consuming 30GB ??! is it using any virtual OR Cache memory ? If yes, Please explain me how can I control it?
@ Bhuvnesh : Now it releases some memory, but still want my SQL Sever to release more memory and want to know how it can use extra memory more than what I allocated..!!? Not sure but might be virtual memroy/Cache memory.
Post #1405845
GilaMonster
GilaMonster
Posted Friday, January 11, 2013 3:30 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 1:37 PM
Points: 37,687,
Visits: 29,944
The max server memory setting controls the buffer pool. That's all of the caches (buffer pool, plan cache, etc) plus the query workspace memory. SQL can and does take memory outside of the buffer pool, usually a small amount, for the thread stacks, backup buffers, CLR memory, linked servers and a couple other things. This memory is almost always vastly smaller than the buffer pool.
Again though, if SQL is using too much memory, reduce the value for max server memory slightly.
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 #1405860
Ed Wagner
Ed Wagner
Posted Monday, January 14, 2013 1:20 PM
SSCommitted
Group: General Forum Members
Last Login: Thursday, May 16, 2013 6:44 AM
Points: 1,856,
Visits: 528
I don't know if this helps, but we have a SQL Server with 72 GB of memory. It typically runs between 85% and 88%, but occasionally spikes to 92%. I have read that SQL Server will consume as much memory as you throw at it and want just a little bit more. No matter how much more you give it, it'll always use more.
I know it uses as much as it can to improve performance through caching and query plans and I've never found an upper limit.
Post #1406927
Bhuvnesh
Bhuvnesh
Posted Monday, January 14, 2013 10:24 PM
SSCrazy
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
Ed Wagner (1/14/2013)
I have read that SQL Server will consume as much memory as you throw at it and want just a little bit more. No matter how much more you give it, it'll always use more.
memory usage not only dependent on how much memory you provide but also other factors too like
•Slow, cheap storage (like SATA hard drives and 1Gb iSCSI)
•Programs that needlessly retrieve too much data
•Databases that don’t have good indexes
•CPUs that can’t build query plans fast enough
--------
-(Thanks for bent ozar here
)
-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1407028
« 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.