November 13, 2017 at 9:51 am
Good Morning Experts,
SQL Server is using 97% of RAM. Could you please advise what needs to be done.
November 13, 2017 at 9:58 am
(1) Make sure you set max server memory such that there is sufficient memory left for the operating system and any other applications or SQL Server components on the server
Then...
(2) Be happy that SQL Server is running as it should.
John
November 13, 2017 at 11:13 am
By design, SQL Server will take every bit of memory that you offer it. It's supposed to. It will grow into the memory allocation limit that you set and then it will sit there, all the time. It's one reason why monitoring percent of memory used is kind of a waste of time. As for as what to set it to, here's some very good guidance from a source I trust.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 13, 2017 at 11:56 am
You can also look at Target Server Memory in Performance monitor to get an idea of what SQL Server thinks it needs.
November 14, 2017 at 3:57 am
Steve Jones - SSC Editor - Monday, November 13, 2017 11:56 AMYou can also look at Target Server Memory in Performance monitor to get an idea of what SQL Server thinks it needs.
SQL Server memory usage reached to 99%. Please let me know what should i do. Shall I decrease the max server memory value?
November 14, 2017 at 4:03 am
Hi coolchaitu,
You should limit the memory SQL Server uses. In the SQL Server Management Studio, after you connect to the db server:
1. Right click on the name and choose Properties
2. In the Server Properties window, choose Memory
3. In this window you have Server memory options. Edit the Maximum server memory(in MB) to the value you think it would be appropriate in your case (i've set it to max 80% of the total RAM available, but you could adapt).
You have to restart the server for the setting to become effective.
Let me know if it helps.
November 14, 2017 at 4:49 am
vimazi - Tuesday, November 14, 2017 4:03 AMHi coolchaitu,You should limit the memory SQL Server uses. In the SQL Server Management Studio, after you connect to the db server:
1. Right click on the name and choose Properties
2. In the Server Properties window, choose Memory
3. In this window you have Server memory options. Edit the Maximum server memory(in MB) to the value you think it would be appropriate in your case (i've set it to max 80% of the total RAM available, but you could adapt).
You have to restart the server for the setting to become effective.Let me know if it helps.
Just to point out you don't have to re-start for the changes to take effect.
Thanks
November 14, 2017 at 8:56 am
Also to point out and speaking from a bit of experience where I made a Phat Phinger mistake... BE VERY VERY CAREFUL WHEN MAKING THE SETTING CHANGE!!!! If you screw up and tell the server to only use, say, 100MB max memory by mistake, you may not be able to fix it and because you won't be able to start SQL Server to fix it.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 14, 2017 at 1:51 pm
Jeff Moden - Tuesday, November 14, 2017 8:56 AMAlso to point out and speaking from a bit of experience where I made a Phat Phinger mistake... BE VERY VERY CAREFUL WHEN MAKING THE SETTING CHANGE!!!! If you screw up and tell the server to only use, say, 100MB max memory by mistake, you may not be able to fix it and because you won't be able to start SQL Server to fix it.
yeah, I did this too. There is a way to force the memory setting on startup. It's a traceflag somewhere. If you do make this happen (as I did), you can get out of it... after a lot of panicked searching on the web.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
November 15, 2017 at 1:15 am
Grant Fritchey - Tuesday, November 14, 2017 1:51 PMJeff Moden - Tuesday, November 14, 2017 8:56 AMAlso to point out and speaking from a bit of experience where I made a Phat Phinger mistake... BE VERY VERY CAREFUL WHEN MAKING THE SETTING CHANGE!!!! If you screw up and tell the server to only use, say, 100MB max memory by mistake, you may not be able to fix it and because you won't be able to start SQL Server to fix it.yeah, I did this too. There is a way to force the memory setting on startup. It's a traceflag somewhere. If you do make this happen (as I did), you can get out of it... after a lot of panicked searching on the web.
-f startup switch, to start in minimal configuration
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
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply