Re: Memory Leak

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

From: CJ Taylor (youalreadyknowit_at_itsoneverylistintheworld.com)
Date: 03/13/04


Date: Sat, 13 Mar 2004 00:24:17 GMT

Don't believe task manager. It's not really good measurement of memory your
using.

-CJ
"Greg" <nospam@nospam.com> wrote in message
news:OKcLS6ICEHA.2620@TK2MSFTNGP12.phx.gbl...
> Anyone know of a good program for locating memory leaks? I've been double
> checking my code and I'm not seeing anywhere that I'm not freeing objects,
> etc after using them but memory keeps going up and up. It gets as high as
> 300MB within a couple hours when it starts off at 20MB. I have a lot of
> code and use Microsoft SQL Server heavily. Frequently I use arrays,
> SqlClient objects, and RegEx. I use dispose with anything that has it and
=
> nothing for everything else.
>
> Each function that talks to the DB creates and free's its own connection
and
> objects. I'm wondering if this is part of the problem because it creates
> and frees the sqlconnection, sqlcommand, and sqldatareader many times per
> minute (not really the most efficient thing to do). I've tried calling
> GC.Collect() every 30 seconds but it doesn't look like that's helping,
which
> makes wonder if things are really being freed.
>
> Am I missing something?
>
>



Relevant Pages

  • Re: Problems with AMD64 and 8 GB RAM?
    ... Greg 'groggy' Lehey wrote: ... I find it very unstable running with 8 ... I only once got it through the boot process. ... > None of these problems occur when I use 4 GB memory. ...
    (freebsd-stable)
  • Re: Problems with AMD64 and 8 GB RAM?
    ... Greg 'groggy' Lehey wrote: ... I find it very unstable running with 8 ... where it hangs for obvious reasons. ... > None of these problems occur when I use 4 GB memory. ...
    (freebsd-stable)
  • Re: sysfs_dir_cache growing out of control
    ... Greg KH wrote: ... consume all the memory on my system, requiring a reboot. ... OK I just rebuilt 2.6.22.3 with SLAB and I seem to be getting the same ...
    (Linux-Kernel)
  • Re: [PATCH] memory hotplug disable boot option
    ... Greg KH wrote: ... is the state and removable file used to do memory hotplug. ... I think the right fix here is probably to untie sysfs from the ... the firmware fixing is only necessary. ...
    (Linux-Kernel)
  • Re: run away processor
    ... > That's interesting using this to control memory on a TS box. ... We don't have to reboot to reslove the memory ... >>> on a single server. ... >>> greg ...
    (microsoft.public.fox.programmer.exchange)