LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Memory Profiler / Leak Finder

[ILUG] Memory Profiler / Leak Finder

P at draigBrady.com P at draigBrady.com
Tue Jun 28 10:41:15 IST 2005


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.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell