Search code examples
ssms-2012

Free SQL Server Management Studio memory usage


Is there a memory usage limitation for SQL Server Management Studio and is there a way to free SSMS memory without rebooting it? I am currently using SSMS 2012 and I always getting error message like below:

'An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.'

My computer has 24GB RAM and the free memory is 17GB but I still get above message when executing some heavy queries. I store some xml data in tables so the query can bring huge data back. However this issue is not occurring all the time. usually it is after I run SSMS for a while that makes me think it is a memory usage limition. at this moment I have to reboot SSMS to get my query executed. Is there a way to free memory without rebooting SSMS?


Solution

  • Álvaro González is right. I installed a 64 bit SSMS and haven't seen same issue again so far.