Solved

SQL Server with disappearing physical memory

Posted on 2008-09-29
7
147 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now