Operating System - HP-UX
1826314 Members
3749 Online
109692 Solutions
New Discussion

memory leak analysis tool

 
shaick_1
Occasional Advisor

memory leak analysis tool

Hi ,

I suspect one of my third party library has memory leak. gdb "info leaks" shows there is a leak.

Is this gdb method is enough to conclude that a library has error. Does any other opensource tool which provide memory leak information on source code as well as from a library.
4 REPLIES 4
RAC_1
Honored Contributor

Re: memory leak analysis tool

There are commecricially available tools for checking a memory leak.

I use a simple menthid as follows.

UNIX95= ps -C "Program" -o "vsz,comm,pid,ruser"

Run this through cron every 15/30 mins and check if it the VSZ goes on increasing or not. If it is, you can say that it has memory leaks.

Anil
There is no substitute to HARDWORK
shaick_1
Occasional Advisor

Re: memory leak analysis tool

Hi,
I have checked memory leaks on source code using "memwatch" tool, but it fails to provide memory leak from library. Since "memwatch" is under GPL license I guess some tool will be available to detect leak in library.

Thanks,
Shaick
Ravi_8
Honored Contributor

Re: memory leak analysis tool

Hi

gdb is most widely used tool to detect memory leak, you can also try with wdb
never give up
Mel Burslan
Honored Contributor

Re: memory leak analysis tool

Rational's (subsidiary of IBM) Purify product is the first one comes to mind when you speak of memory leaks, alas, it is not opensource. Maybe you can talk your organization's money people to license it, if the application is critical to business needs.
________________________________
UNIX because I majored in cryptology...