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.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!