Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

SQL Server memory growth
My company sells a client/server system written in VB that connects to a SQL
Server 2000 (std Ed) database. The software is deployed in 4 locations acros
s
the country. Each customer runs their database server on the same physical
hardware as our application. The database is pretty small (about 100 tables
and a mdf file < 1GB), but appears to take more memory than it should. My
technique is not very scientific. Basically, I look inside of Task Manager a
t
startup time and then again each hour for some duration. Within a day's time
,
SQL Server takes up to about 1GB of memory. What are some of the things I ca
n
do (in order of easiest to hardest) to reduce the memory footprint?

Thanks so much for your assistance. I have found this group extremely useful
in helping me develop my SQL skills.

Report this thread to moderator Post Follow-up to this message
Old Post
JohnnyMagz
01-31-06 01:23 AM


RE: SQL Server memory growth
SQL Server is suppose to take all the memory except 5mb for OS if required
unless you set up the min server memory and max server memory parameters.
Do your other applications have bottlenexk on memory? If yes you can setup
the max server memory for SQL Server otherwise it is working as designed.


"JohnnyMagz" wrote:

> My company sells a client/server system written in VB that connects to a S
QL
> Server 2000 (std Ed) database. The software is deployed in 4 locations acr
oss
> the country. Each customer runs their database server on the same physical
> hardware as our application. The database is pretty small (about 100 table
s
> and a mdf file < 1GB), but appears to take more memory than it should. My
> technique is not very scientific. Basically, I look inside of Task Manager
 at
> startup time and then again each hour for some duration. Within a day's ti
me,
> SQL Server takes up to about 1GB of memory. What are some of the things I 
can
> do (in order of easiest to hardest) to reduce the memory footprint?
>
> Thanks so much for your assistance. I have found this group extremely usef
ul
> in helping me develop my SQL skills.

Report this thread to moderator Post Follow-up to this message
Old Post
harvinder
01-31-06 01:23 AM


RE: SQL Server memory growth
Really? I'd expect the application's memory utilization to ramp up to some
value and then level off. In this case, it continues to grow. Wouldn't that
be indicative of a memory leak? To answer your question, yes my applications
are leaking memory. We are addressing that, but I'm surprised that the sql
process itself is growing in memory usage. I am not doing anything to
backup/truncate the transaction log. Will doing that have an effect on memor
y
usage?
--
- Johnny


"harvinder" wrote:

> SQL Server is suppose to take all the memory except 5mb for OS if required
> unless you set up the min server memory and max server memory parameters.
> Do your other applications have bottlenexk on memory? If yes you can setup
> the max server memory for SQL Server otherwise it is working as designed.
>
>
> "JohnnyMagz" wrote:
> 

Report this thread to moderator Post Follow-up to this message
Old Post
JohnnyMagz
01-31-06 01:23 AM


Re: SQL Server memory growth
This is well documented and expected behavior from SQL Server.  Most SQL
Servers are on dedicated hosts, so the default is to tune them as such.  SQL
doesn't "leak" memory, it allocates more cache.  The more data SQL can
cache, the better the performance.  SQL also caches query plans, so it can
allocate and use more memory than the physical database size.  If you are on
a non-dedicated server, you can limit the amount of memory SQL will
allocate.


The following KB article explains SQL memory usage and how to adjust it:
http://support.microsoft.com/kb/321363/en-us

--
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP



"JohnnyMagz" < JohnnyMagz@discussio
ns.microsoft.com> wrote in message
news:0233F3F5-1301-44BD-873D- 1799FC54F9FA@microso
ft.com...
> Really? I'd expect the application's memory utilization to ramp up to some
> value and then level off. In this case, it continues to grow. Wouldn't
> that
> be indicative of a memory leak? To answer your question, yes my
> applications
> are leaking memory. We are addressing that, but I'm surprised that the sql
> process itself is growing in memory usage. I am not doing anything to
> backup/truncate the transaction log. Will doing that have an effect on
> memory
> usage?
> --
> - Johnny
>
>
> "harvinder" wrote:
> 



Report this thread to moderator Post Follow-up to this message
Old Post
Geoff N. Hiten
01-31-06 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 05:10 AM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006