Solved

SQL Server with disappearing physical memory

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

628 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