Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQL Server with disappearing physical memory

Posted on 2008-09-29
7
Medium Priority
?
156 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
[X]
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
7 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 2000 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

721 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