Operating System - HP-UX
1829962 Members
2124 Online
109998 Solutions
New Discussion

Memory Leakage in C++ on HPUX10.2

 
Prashun
Occasional Contributor

Memory Leakage in C++ on HPUX10.2

Hello All
I am facing a very trivial problem of memory consumption by my process. When I see top I found that my process is slowly increasing its size and RES. This will consume all the memory of the system, slowly and terminate.
My program is written in c++ on HPUX10.2.
I want to detect what part of the code is consuming the memory. As the code has large number of libraries attached.
I want to put a log at regular points of the code what is the status of the memory available. Anyone can help me in sending me details how can I print the status of the memory through code. Moreover Is there any tool except Rational purify which can help in detecting memory leakage. I also need soem information on some garbage collection mecahnism which can be initiated in the c++ code, so that I can be able to remove all memory consuming Global objects which are of no use anyfurther.
I am in deep need, as i have some deadline to meet.
Regards
Prashun
1 REPLY 1
Sridhar Bhaskarla
Honored Contributor

Re: Memory Leakage in C++ on HPUX10.2

Prashun,

I am not a programmer. You can use either DDE or xdb to debug your program. DDE is a nice GUI using which you can specify checkpoints and debug the code.

Check with your System Administrator. If it is installed, it will be under /opt/langtools/bin/dde.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try