SQL Server with disappearing physical memory

Posted on 2008-09-29
Last Modified: 2012-05-05
Hi all,

i have a SQL 2005 box - it is running windows 2003 standard with sp2 on it.

My SQL 2005 has SP2 and CU 9 running on it. Version ID is 9.00.3820.00

My problem is this - I look in my process monitor and I see 2gb of physical ram being used but when I check the processes there is no way it is near that.

When I restart SQL bang it all comes back.

Is this normal? and if not can I do something to fix it. I hate not knowing what is taking my ram.



Question by:mickinoz2005
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 60

Accepted Solution

chapmandew earned 500 total points
ID: 22595654
Its normal, SQL reserves a lot of memory to use.  you can throttle it back using the following:

sp_configure 'show advanced options', 1
reconfigure with override

exec sp_configure 'max server memory (MB)', 'number of megs you want to allocate'
reconfigure with override

Author Comment

ID: 22596691
Hi Chapmandew,

Can you just detail a little more on how to configure - I am not that familar with SQL so your explaination above does not really sink in with me. Or should I say the method to resolve.

Appreciate the help.

LVL 60

Expert Comment

ID: 22596716'll want to run it in a new query window...either in enterprise manager (if on 2000) or using management Studio. You connect to the db instance that is using "too much memory" and run the statements I gave above.  For the 'number of megs you want to allocate' part, you replace the amount of MB you want to use for SQL server memory (the max amount), if you want to use 1 GB, you'd put in '1024'....does that make sense?

Author Comment

ID: 22598583
Just as a follow on to this - should the memory keep decreasing over time. I noticed that even since posting this my memory has gone from 1.4gb availalbe to 800mb and nothing else is running and process manager is still showing little or nothing. Will SQL keep munching memory until it is all gone

I noticed before the physical went real low and I had to restart SQL to get it back - the server performance started to slow down.

I read up on MS updates that there was a bug in SQL 2005 and this was fixed in one of the CU for SP2 so I put CU 9 on but still seems to be happening.

Any thoughts.
LVL 60

Expert Comment

ID: 22598601
the memory will probably remain around the level at which you constrain it using the statement I gave above....

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL ( and MongoDB (…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question