Home All Groups Group Topic Archive Search About

300MB DB uses 1.4GB RAM!?

Author
25 Oct 2006 7:12 PM
William Bernat
SQL Server 2000 running nothing but a 300MB database over the course of a
month of continuous use from a single application winds up grabbing 1.4GB of
RAM. Is that normal or excessive? (No performance degradation at all, jut a
lot of RAM allocated.)



This is clustered, but the problem has occurred separately on each node.
Yes, that took over 2 months to test.

Author
25 Oct 2006 7:22 PM
Tracy McKibben
William Bernat wrote:
> SQL Server 2000 running nothing but a 300MB database over the course of a
> month of continuous use from a single application winds up grabbing 1.4GB of
> RAM. Is that normal or excessive? (No performance degradation at all, jut a
> lot of RAM allocated.)
>
>
>
> This is clustered, but the problem has occurred separately on each node.
> Yes, that took over 2 months to test.
>
>

This is normal behavior.  SQL Server likes memory, and will use as much
as it can to cache data pages so that it doesn't have to make repeated
trips to disk...


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Are all your drivers up to date? click for free checkup

Author
25 Oct 2006 7:33 PM
Kevin3NF
If the data is only 300mb...what's taking the extra 900mb?

I've seen this before, but nobody ever wanted to pay me to find the answer
:)

Short of mem-to-leave being huge, I can't think of a valid reason for what
William is seeing...

Show quoteHide quote
"Tracy McKibben" <tr***@realsqlguy.com> wrote in message
news:453FB984.1010509@realsqlguy.com...
> William Bernat wrote:
>> SQL Server 2000 running nothing but a 300MB database over the course of a
>> month of continuous use from a single application winds up grabbing 1.4GB
>> of
>> RAM. Is that normal or excessive? (No performance degradation at all, jut
>> a
>> lot of RAM allocated.)
>>
>>
>>
>> This is clustered, but the problem has occurred separately on each node.
>> Yes, that took over 2 months to test.
>>
>>
>
> This is normal behavior.  SQL Server likes memory, and will use as much as
> it can to cache data pages so that it doesn't have to make repeated trips
> to disk...
>
>
> --
> Tracy McKibben
> MCDBA
> http://www.realsqlguy.com
Author
25 Oct 2006 8:05 PM
Tracy McKibben
Kevin3NF wrote:
> If the data is only 300mb...what's taking the extra 900mb?
>
> I've seen this before, but nobody ever wanted to pay me to find the answer
> :)
>
> Short of mem-to-leave being huge, I can't think of a valid reason for what
> William is seeing...
>

Funny how 300mb looks like 300GB when you're reading fast...


--
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Author
27 Oct 2006 8:04 PM
Theo Verweij
TempDb, cached plans, open connections, ....
Kevin3NF wrote:
Show quoteHide quote
> If the data is only 300mb...what's taking the extra 900mb?
>
> I've seen this before, but nobody ever wanted to pay me to find the answer
> :)
>
> Short of mem-to-leave being huge, I can't think of a valid reason for what
> William is seeing...
>
Author
27 Oct 2006 8:21 PM
Kevin3NF
TempDB (other others).

That's gotta be it :)

Someone slap me for being so narrow in my thinking...

Show quoteHide quote
"Theo Verweij" <tverw***@xs4all.nl> wrote in message
news:ePzcxMg%23GHA.4800@TK2MSFTNGP05.phx.gbl...
> TempDb, cached plans, open connections, ....
> Kevin3NF wrote:
>> If the data is only 300mb...what's taking the extra 900mb?
>>
>> I've seen this before, but nobody ever wanted to pay me to find the
>> answer :)
>>
>> Short of mem-to-leave being huge, I can't think of a valid reason for
>> what William is seeing...
>>
Author
25 Oct 2006 8:35 PM
Tibor Karaszi
Could be execution plans. A quick way to check is using dbcc memorystatus, Google for articles and
usage of that command.

Show quoteHide quote
"William Bernat" <nospamplease@unavil.com> wrote in message
news:Oh7MikG%23GHA.4740@TK2MSFTNGP03.phx.gbl...
> SQL Server 2000 running nothing but a 300MB database over the course of a
> month of continuous use from a single application winds up grabbing 1.4GB of
> RAM. Is that normal or excessive? (No performance degradation at all, jut a
> lot of RAM allocated.)
>
>
>
> This is clustered, but the problem has occurred separately on each node.
> Yes, that took over 2 months to test.
>
>
Author
25 Oct 2006 9:47 PM
Linchi Shea
Could be intermdiate resultsets as well.

Linchi

Show quoteHide quote
"William Bernat" wrote:

> SQL Server 2000 running nothing but a 300MB database over the course of a
> month of continuous use from a single application winds up grabbing 1.4GB of
> RAM. Is that normal or excessive? (No performance degradation at all, jut a
> lot of RAM allocated.)
>
>
>
> This is clustered, but the problem has occurred separately on each node.
> Yes, that took over 2 months to test.
>
>
>
Author
26 Oct 2006 6:23 AM
Jack
Hi!

Hhm... how to say this.
Oracle rdbms is far more better in this point.
If you plan to increase load (users/jobs) consider
switching to Oracle.

Or, is this any issue. RAM Memory is quite cheap.

Jack
Show quoteHide quote
"William Bernat" <nospamplease@unavil.com> wrote in message
news:Oh7MikG%23GHA.4740@TK2MSFTNGP03.phx.gbl...
> SQL Server 2000 running nothing but a 300MB database over the course of a
> month of continuous use from a single application winds up grabbing 1.4GB
> of
> RAM. Is that normal or excessive? (No performance degradation at all, jut
> a
> lot of RAM allocated.)
>
>
>
> This is clustered, but the problem has occurred separately on each node.
> Yes, that took over 2 months to test.
>
>
Author
26 Oct 2006 12:31 PM
Linchi Shea
> If you plan to increase load (users/jobs) consider
> switching to Oracle.

I don't think anything said here would lend enough support to such a big
leap to this conclusion.

Linchi

Show quoteHide quote
"Jack" wrote:

> Hi!
>
> Hhm... how to say this.
> Oracle rdbms is far more better in this point.
> If you plan to increase load (users/jobs) consider
> switching to Oracle.
>
> Or, is this any issue. RAM Memory is quite cheap.
>
> Jack
> "William Bernat" <nospamplease@unavil.com> wrote in message
> news:Oh7MikG%23GHA.4740@TK2MSFTNGP03.phx.gbl...
> > SQL Server 2000 running nothing but a 300MB database over the course of a
> > month of continuous use from a single application winds up grabbing 1.4GB
> > of
> > RAM. Is that normal or excessive? (No performance degradation at all, jut
> > a
> > lot of RAM allocated.)
> >
> >
> >
> > This is clustered, but the problem has occurred separately on each node.
> > Yes, that took over 2 months to test.
> >
> >
>
>
>
Author
26 Oct 2006 11:27 AM
Dan Guzman
To add to the other responses, SQL Server likes to keep the acquired memory
because memory allocation and deallocation is a relatively expensive
operation.  Memory will be release when SQL Server detects pressure.  Since
you have no performance issues, it seems like a good strategy in your case.
If you have other applications on the server that use a significant amount
of memory and observe paging during memory spikes, you might consider
setting the maximum SQL Server memory to reduce contention.

--
Hope this helps.

Dan Guzman
SQL Server MVP

Show quoteHide quote
"William Bernat" <nospamplease@unavil.com> wrote in message
news:Oh7MikG%23GHA.4740@TK2MSFTNGP03.phx.gbl...
> SQL Server 2000 running nothing but a 300MB database over the course of a
> month of continuous use from a single application winds up grabbing 1.4GB
> of
> RAM. Is that normal or excessive? (No performance degradation at all, jut
> a
> lot of RAM allocated.)
>
>
>
> This is clustered, but the problem has occurred separately on each node.
> Yes, that took over 2 months to test.
>
>

Bookmark and Share

Post Thread options