Solved

Monitoring Memory in SQL SERVER

Posted on 2006-11-22
5
304 Views
Last Modified: 2008-02-01
Hi Friends,

I want to monitor memory usage in SQL SERVER, settings on my machine are as below:-

Windows 2003 Standard Edition
SQL SERVER 2000 Enterprise Edition

a) PAE Switch \3 GB Enabled
b) Awe Enabled
c) Fixed Memory - 3072 MB
d) Task  Manager is showing - 2807562K for SQL SERVER process
e) Target & Total Server Memory (Performance Counter) is also showing same as 2734768 KB
f) Working Set in Performance Counter is showing as 2875109376 (SQL SERVER)

Problem is it is showing maximum memory utilized, even when no processes are running on SQL SERVER, please let me know how i can monitor what is the exact memory utilization on my SQL SERVER.

Regards,

dduser
0
Comment
Question by:dduser
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
drydenhogg earned 200 total points
ID: 17994190
The memory usage is available in perfmon, sql outputs a counter, just need to make sure I remember the right one,

In perfmon, add a counter from the SQL Server : Memory Manager category of counters

As I remember, Total Server Memory is the memory it is currently using.
Target Server memory is the total the server 'can' consume, which would be the 2.8 gb your seeing.



0
 
LVL 8

Expert Comment

by:drydenhogg
ID: 17994197
addenedum : If your target memory is always up at the same as total, try dbcc memorystatus and compare the figures.
0
 
LVL 28

Assisted Solution

by:imran_fast
imran_fast earned 150 total points
ID: 17995528
Hi,
When you start sql services it will consume memory only to start the instance as you start running quries on the server it will consume memory and will not release it so if you run bit query it will consume the maximum allocated memory and will not free it (which is normal and the way sql works nothing to worry about)
because it will utilize this memory for sql services like running query and other stuff.
0
 
LVL 42

Assisted Solution

by:EugeneZ
EugeneZ earned 150 total points
ID: 18000401
<Task  Manager is showing - 2807562K for SQL SERVER process
it is ok - says how much memory is ready for sql server

How much RAM do you have on the box?

additional to drydenhogg's post:

Tips for Using Performance Monitor Memory Counters
http://www.sql-server-performance.com/performance_monitor_counters_memory.asp

Consider watching these two counters: SQLServer:Memory Manager: Total Server Memory (KB) and SQLServer:Memory Manager: Target Server Memory (KB). The first counter, SQLServer:Memory Manager: Total Server Memory (KB), tells you how much the mssqlserver service is currently using. This includes the total of the buffers committed to the SQL Server BPool and the OS buffers of the type "OS in Use".

The second counter, SQLServer:Memory Manager: Target Server Memory (KB), tells you how much memory SQL Server would like to have in order to operate efficiently. This is based on the number of buffers reserved by SQL Server when it is first started up.

If, over time, the SQLServer:Memory Manager: Total Server Memory (KB) counter is less than the SQLServer:Memory Manager: Target Server Memory (KB) counter, then this means that SQL Server has enough memory to run efficiently. On the other hand, if the SQLServer:Memory Manager: Total Server Memory (KB) counter is more or equal than the SQLServer:Memory Manager: Target Server Memory (KB) counter, this indicates that SQL Server may be under memory pressure and could use access to more physical memory. [7.0, 2000] Updated 5-25-2005
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In this article—a derivative of my DaytaBase.org blog post (http://daytabase.org/2011/06/18/what-week-is-it/)—I will explore a few different perspectives on which week today's date falls within using Microsoft SQL Server. First, to frame this stu…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

759 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

20 Experts available now in Live!

Get 1:1 Help Now