SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server consuming 90% Memory


SQL Server consuming 90% Memory

Author
Message
Jitendra Padhiyar
Jitendra Padhiyar
Mr or Mrs. 500
Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)

Group: General Forum Members
Points: 508 Visits: 674
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.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)

Group: General Forum Members
Points: 89471 Visits: 45284
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, MVP, M.Sc (Comp Sci)
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


Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5422 Visits: 4076
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----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Jitendra Padhiyar
Jitendra Padhiyar
Mr or Mrs. 500
Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)

Group: General Forum Members
Points: 508 Visits: 674
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?
SQLRNNR
SQLRNNR
SSC-Dedicated
SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)SSC-Dedicated (33K reputation)

Group: General Forum Members
Points: 33116 Visits: 18560
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, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw

Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5422 Visits: 4076
jitender, are you still experiencing same memory issues ?

-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Jitendra Padhiyar
Jitendra Padhiyar
Mr or Mrs. 500
Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)Mr or Mrs. 500 (508 reputation)

Group: General Forum Members
Points: 508 Visits: 674
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.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)SSC Guru (89K reputation)

Group: General Forum Members
Points: 89471 Visits: 45284
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, MVP, M.Sc (Comp Sci)
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


Ed Wagner
Ed Wagner
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16945 Visits: 10089
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. :-D

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.


Tally Tables - Performance Personified
String Splitting with True Performance
Best practices on how to ask questions
Bhuvnesh
Bhuvnesh
SSCertifiable
SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)SSCertifiable (5.4K reputation)

Group: General Forum Members
Points: 5422 Visits: 4076
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. :-D
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 :-D)


-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search