5

How can release memory usage of sql server by command. my system have 16GB RAM, but when get huge query by sql server, memory usage become full. if I restart SQL Server service memory usage become free. but I want to release memory usage of sql server after each huge query execute.

Colin 't Hart
9,52015 gold badges37 silver badges44 bronze badges
asked Jun 6, 2012 at 7:56
5
  • How to adjust memory usage by using configuration options in SQL Server Commented Jun 6, 2012 at 7:58
  • Is it a problem that SQL-Server is using a lot of memory? Commented Jun 6, 2012 at 8:28
  • I use SSIS to convert data from OldDatabase to NewDatabase, when package1 execute, system memory usage become full and execute of package2 become very slow. but if I restart SQL Server service and realease sql server memory usage and then execute package2, this package run very fast. Commented Jun 6, 2012 at 8:32
  • Please see this question: dba.stackexchange.com/questions/6691/… Commented Jun 6, 2012 at 9:51
  • I did set the "max sever memory" option, but somehow it doesn't work. Any suggestions? Commented Jun 19, 2012 at 9:39

2 Answers 2

10

SQL Server is supposed to use all the memory. If you want to reserve memory for other things set the max server memory setting in SQL Server so that it'll stop eating up all the memory.

answered Jun 6, 2012 at 10:25
1
  • I would always suggest to set a max memory, otherwise you can run in memory problems even on dedicated machines. Commented Jun 17, 2015 at 8:37
0

SQL Server will always use as much as memory as he can gets. Even on a server which is designed just for SQL Server, you should define a max memory usage on the instance. Otherwise your windows can run in a memory pressure if you try to connect to the machine as admin.

answered Jun 17, 2015 at 8:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.