November 18, 2010 at 7:34 am
hi,
In our production server SQL server has consumed almost all the memory. Please let me know how to get the memory back without inrrupting the production.
In task manager the memory shows like this:
Total: 15.8 GB
Cached: 520 KB
Free: 50 KB
Ryan
//All our dreams can come true, if we have the courage to pursue them//
November 18, 2010 at 7:40 am
Is this a 64 bit or 32 bit? Did you set up maximum memory for SQL Server?
-Roy
November 18, 2010 at 8:02 am
It is 64 bit system and running SQL server enterprise edition in cluster environment(45 node). Max. memory is not set. But I want the temporary solution now.
Ryan
//All our dreams can come true, if we have the courage to pursue them//
November 18, 2010 at 8:10 am
As per MS, To reduce the max server memory you may need to restart SQL Server to release the memory.
The only way to release memory is to use DBCC commands. But they will probably cause more problems than what you are facing now.
-Roy
November 18, 2010 at 9:33 am
Agree with Roy. Restarting the instance would be a safe idea
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
November 18, 2010 at 10:51 am
Hi
There is no way to claim back the memory , have to restart.
Cheers
Murali
November 18, 2010 at 11:13 am
murali.Jillellamudi (11/18/2010)
HiThere is no way to claim back the memory , have to restart.
Cheers
Murali
To free up memory you can run
DBCC FREEPROCCACHE will free procedure cache
DBCC FREESYSTEMCACHE will remove all unused cache
DBCC FREESESSIONCACHE will remove distributed query connection cache.
BUT, this will cause more problems.
-Roy
November 18, 2010 at 11:37 am
DBCC...
These commands clears the allocated buffers but does release the memory taken by SQL SERVER
Thanks
Murali
November 18, 2010 at 11:49 am
SQL Server will release memory when some other operation of OS needs it.
But in this case, we are not sure if there is a memory pressure or not. Only thing we know is what the task manger shows. And task manger is not the best way to find out what is the memory used. It is better to use perf mon or use DBCC commands to see if there is a memory usage.
-Roy
November 19, 2010 at 12:39 am
Sumanta Roy (11/18/2010)
It is 64 bit system and running SQL server enterprise edition in cluster environment(45 node). Max. memory is not set. But I want the temporary solution now.
Set the 'max server memory' configuration option to an appropriate value, the setting is dynamic and does not require a service restart.
From the information given, it sounds as though the account SQL Server runs under does not have the Lock Pages In Memory (LPIM) right. It is often beneficial to do so to avoid paging SQL Server out. If you do set LPIM, you absolutely must set the 'max server memory' option to an appropriate value.
For more information, see: http://blogs.msdn.com/b/psssql/archive/2009/09/11/fun-with-locked-pages-awe-task-manager-and-the-working-set.aspx
Paul
Paul White
SQLPerformance.com
SQLkiwi blog
@SQL_Kiwi
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply