Solved

SQL Server with disappearing physical memory

Posted on 2008-09-29
7
150 Views
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.

thanks

Michael


0
Comment
Question by:mickinoz2005
  • 3
  • 2
7 Comments
 
LVL 60

Accepted Solution

by:
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
0
 
LVL 5

Author Comment

by:mickinoz2005
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.

Michael
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 22596716
sure..you'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)...so, if you want to use 1 GB, you'd put in '1024'....does that make sense?
0
 
LVL 5

Author Comment

by:mickinoz2005
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.
0
 
LVL 60

Expert Comment

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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

840 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