SQL Server uses a lot of memory

Here's a little work around for SQL server which uses a lot more memory than it should. Naturally, you can set this through the properties of the instance it self. however, since this is a bug in microsoft sql server 2008 (r2?), this script is a workaround.





EXEC sys.sp_configure N'show advanced options', N'1'

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N'max server memory (MB)', N'{low water mark}'

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N'max server memory (MB)', N'{High water mark}'

GO

RECONFIGURE WITH OVERRIDE

GO

EXEC sys.sp_configure N'show advanced options', N'0'

RECONFIGURE WITH OVERRIDE

GO
 
Low water mark : Minimum usage
High water mark : High usage max.
Credit: Jason Plank 




Popular posts from this blog

[SOLVED] Veeam: Failed change tracking (CBT)

Fixing Error 25541. Failed to open XML file