[ILUG] Memory Profiler / Leak Finder
nadir at compsoc.nuigalway.ie
nadir at compsoc.nuigalway.ie
Tue Jun 28 13:22:02 IST 2005
mm, Ive been having bad mem leaks with xorg recently, I guess i should upgrade,
its strange though, it only started to happen recently, the only thing i changed
was an upgrade to the nvidia drivers, i figure it must be some type of
incompatability.
Quoting P at draigBrady.com:
> Niall Donegan wrote:
> > Any handy programs out there for finding out what program on a running
> > system is leaking memory. I know about stuff like valgrind, leaky and
> > their kin, but they either require to run the software to be run on top of
> > them or to have a library compiled in.
> >
> > I'm looking for something that can be thrown into an already running
> > system (LAMP based) and point me at what is causing the trouble.
> >
> > Any help would be much appreciated.
>
> Well from outside an app you don't know whether mem is
> being allocated legitimately or being leaked.
>
> A good indication though would be to see which programs
> were increasing in size over time. How about this:
>
> watch --differences=cumulative "ps -e -o pmem=,rss=,args= | sort -b
> -k1,1n | tail"
>
> Pádraig.
> --
> Irish Linux Users' Group
> http://www.linux.ie/mailman/listinfo/ilug/
>
>
More information about the ILUG
mailing list