Re: memory leak when quering from SQL server

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Jon Skeet [C# MVP] (skeet_at_pobox.com)
Date: 07/25/04


Date: Sun, 25 Jul 2004 20:19:35 +0100

Uzi Baruch <uzibaruch@hotmail.com> wrote:
> I have a query that gets binary info from the SQL Server.
>
> The problem is that the query is very large and the process that performs it
> consumes a lot of memory.
>
> Actually it consumes the amount of memory as defined in the SQL Server
> properties (memory tab).
>
> The problem is even bigger, because the process does not release the
> consumed memory and if I decrease it then i get a lot of page faults.

Are you calling Dispose on everything appropriate (DataReader,
SqlConnection etc)?

-- 
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Relevant Pages

  • Re: FTS Performance in SQL 2005
    ... The Memory Usage and VM Size never increase over about 65 MB and 20MB. ... Can you post you query plans and the output of statistics IO ... SQL Server MVP ... cost relative to the whole batch, ...
    (microsoft.public.sqlserver.fulltext)
  • Re: How to clear memory usage after executing queries ?
    ... The second query will likely pick up a lot of its data pages in cache, ... SQL Server loves memory and the more you ... Yes, I would like to keep the data in cache for subsequent queries, but I ...
    (microsoft.public.sqlserver.programming)
  • Re: Full Text Search Performance
    ... Without actually testing English vs. Arabic & using the Neutral wordbreaker ... itself account for this poor query performance. ... See SQL Server 2000 BOL title "SQL Full-text Search ... machine's memory configuration you should be able to ensure ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Full Text Search Performance
    ... You're welcome, Ali, ... Beta2 release for MSDN subscribers) as the new version of SQL Server has ... No, this is not normal query for a table of this size, but the number of ... > about resource usage, memory and drives...etc. ...
    (microsoft.public.sqlserver.fulltext)
  • Re: Memory Usage/Hog
    ... > Secondly, without having more detail information about my application, it would be difficult to ... There are several ways a query plan can be re-used. ... > that the OS uses to ask SQL Server for the memory back. ...
    (microsoft.public.sqlserver.server)