June 3, 2011 at 1:21 pm
I have a sql server 2008 64bit and windows 2008r2 64 bit and i have 8gb memory
and i set the max to 6gb and i see sql server always using 6gb as expected but how
do i know how much it is actually using...
Any help on this is greatly appreciated.
thanks in advance
June 3, 2011 at 1:55 pm
The perfmon counter SQL Server:Memory Manager:Total Server Memory(KB) will tell you exactly how much memory SQL is using.
June 3, 2011 at 2:00 pm
But in this case i am seeing both Total and Target same.
What ever the max memory is set to...
I want to know..if it's having pressure...
Thanks,
June 3, 2011 at 2:09 pm
To assess memory pressure you need to look at SQL Server:Buffer Manager and the counters
Buffer Cache Hit Ratio (should be > 90) This is the % of pages in memory without reading from disk.
Page Life Expectancy (should be > 300) This is the number of seconds pages stay in memory before being flushed to disk.
These are just a couple to get you going.
June 4, 2011 at 4:54 am
chinn (6/3/2011)
I have a sql server 2008 64bit and windows 2008r2 64 bit and i have 8gb memoryand i set the max to 6gb and i see sql server always using 6gb as expected but how
do i know how much it is actually using...
Any help on this is greatly appreciated.
thanks in advance
Look the past discussion
http://www.sqlservercentral.com/Forums/Topic702953-360-1.aspx
Muthukkumaran Kaliyamoorthy
https://www.sqlserverblogforum.com/
June 4, 2011 at 7:58 am
Thanks Everybody ..on this.
But my question is .
If somebody comes to me and asks how much memory SQL Server is actually using out of the allocated how would i answer that...
Thanks....
June 5, 2011 at 3:50 am
Hi,
To see the real memory used by sql server it is enough to execute (on master db):
select * from sys.sysperfinfo
where counter_name like '%Total Server Memory (KB)%'
and if this server is dedicated to SQL server so you can assign 7 GB to SQL leaving 1 GB to the Operating system.
Regards,
Nesma Mounir
June 5, 2011 at 4:12 am
chinn (6/4/2011)
But my question is .If somebody comes to me and asks how much memory SQL Server is actually using out of the allocated how would i answer that...
JeremyE (6/3/2011)
The perfmon counter SQL Server:Memory Manager:Total Server Memory(KB) will tell you exactly how much memory SQL is using.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 5, 2011 at 5:20 am
Total Server Mem and Target Server Mem are almost the same thing..Does it mean it's using 6gb and it needs more...
thanks....
June 5, 2011 at 5:24 am
Means it wants 6GB and it has 6GB.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 6, 2011 at 5:03 am
I 'wd worry about a possible memory pressure if Target Server memory is more than Total Server memory, Page life expectancy is less than say 200 and buffer cache hit ratio < 90%.
I 'wd trend on Memory Grants Pending and pages/sec to see the trend on memory pressure.
By design, SQL will use up as much memory as it can within the allocation. If you are going to allocate 7GB then you 'll see it is using the extra 1GB after some time. So don't worry about it unless you see any symptoms of memory pressure. To check current memory status you can use
DBCC MEMORYSTATUS.
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply