SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL Server 2008 memory usage exceeds configured Max Server Memory


SQL Server 2008 memory usage exceeds configured Max Server Memory

Author
Message
khandelwal_arun
khandelwal_arun
Right there with Babe
Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)

Group: General Forum Members
Points: 799 Visits: 235
Hi,

My server have 32GB RAM and it's bind with 28GB to SQL Server but when I run the test load over 20hrs it's exceed the configured value.
And we are using shared memory connection with Applicaiton.
Can someone light on this, this is memory leak with SQL server or anything else...
If this is memory leak then Microsoft has released any hotfix for it?

Thanks,
okbangas
okbangas
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11139 Visits: 1387
First thing to come into my mind: Do you have multiple instances on the server? If so, you should be aware of the fact that max server memory is a per instance setting.

Apart from this, where/how do you look up the amount of memory allocated to SQL Server?



Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

Concatenating Row Values in Transact-SQL
khandelwal_arun
khandelwal_arun
Right there with Babe
Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)

Group: General Forum Members
Points: 799 Visits: 235
No there is only single instance and I bind memory in database level I means in property -> Memroy -> Max Memory setting.

Thanks for your prompt response.
Regards,
GilaMonster
GilaMonster
SSC Guru
SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)

Group: General Forum Members
Points: 931404 Visits: 48906
Yup. Perfectly normal.

Max server memory is the max size of the buffer pool, the memory area that contains the data cache, plan cache and a whole bunch of other caches. SQL also uses memory outside the buffer pool for things like backup buffers, thread stack, linked server drivers, CLR and a few other things. This is outside of the buffer pool, so it's not part of 'max server memory'

On 32-bit SQL, that's referred to as MemToLeave (memory to leave unallocated when assigning the buffer pool). On 64 bit that term has no meaning.

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


khandelwal_arun
khandelwal_arun
Right there with Babe
Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)Right there with Babe (799 reputation)

Group: General Forum Members
Points: 799 Visits: 235
Thanks for you prompt reply...

Is anyway we can bind SQL Server memory which will not exceed configured value.... in 64-bit environment..

Regards,
GilaMonster
GilaMonster
SSC Guru
SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)

Group: General Forum Members
Points: 931404 Visits: 48906
You can only control the buffer pool. The non-buffer pool memory should be relatively small, unless you're doing weird things with CLR. If SQL as a whole is using too much memory, reduce the size of the buffer pool as that's you can control

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


benjamin.reyes
benjamin.reyes
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4741 Visits: 2286
For example on one of my machines I have max memory set at 26,624 MB, which is my buffer size, the plan cache is an additional 4,408 MB. I don't believe there is a setting to force the plan cache to be smaller, only the buffer cache, you really shouldn't be running anything else on your sql box anyway.
GilaMonster
GilaMonster
SSC Guru
SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)SSC Guru (931K reputation)

Group: General Forum Members
Points: 931404 Visits: 48906
benjamin.reyes (10/28/2011)
For example on one of my machines I have max memory set at 26,624 MB, which is my buffer size, the plan cache is an additional 4,408 MB.


The plan cache is part of the buffer cache, so your plan cache takes up 4408MB of the 26624MB buffer pool. What's outside of the buffer pool is things like CLR memory, backup buffers, thread stacks, linked server drivers and a couple other things. They're generally smallish memory allocations

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

We walk in the dark places no others will enter
We stand on the bridge and no one may pass


benjamin.reyes
benjamin.reyes
SSCarpal Tunnel
SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)SSCarpal Tunnel (4.7K reputation)

Group: General Forum Members
Points: 4741 Visits: 2286
Is there a way to find how much memory each of these specific components use?
okbangas
okbangas
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11139 Visits: 1387
You mean something like this
select 
SUM(pages_allocated_count)*8 as MemKB,
type
from
sys.dm_os_memory_objects
group by
type
order by
MemKB desc

select
SUM(pages_allocated_count)*8 as MemKB,
type
from
sys.dm_os_memory_cache_entries
group by
type
order by
MemKB desc





Ole Kristian Velstadbråten Bangås - Virinco - Facebook - Twitter

Concatenating Row Values in Transact-SQL
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum









































































































































































SQLServerCentral


Search