1836451 Members
2348 Online
110100 Solutions
New Discussion

Re: Memory Leakage

 
Indrajit_1
Valued Contributor

Memory Leakage

Hi All;

How to prevent memory leakage? it seems Memory utilization has had a slowly increasing trend (about 1.4%) for the past couple of months. need help

Cheers
indrajit
Never Ever Give Up
5 REPLIES 5
Kent Ostby
Honored Contributor

Re: Memory Leakage

What OS are you on and where are you seeing the leaks?

What patches do you have installed on your system?

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Torsten.
Acclaimed Contributor

Re: Memory Leakage

Memory leakage could be a result of a bad programming style. If you allocate space for your variables and arrays and don't free the space after use in your program, the memory will get "leak".

In former times when your word processor and your text fits on a floppy-disk, the programs were really memory optimized. Most of the current programs are different.
;-)

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
James R. Ferguson
Acclaimed Contributor

Re: Memory Leakage

Hi:

It is not unusual for a programs' memory footprint to grow over time, since the memory it uses isn't released to the system until the process terminates.

True memory leaks are code bugs. A program that 'malloc's memory but fails to 'free' it when it is no longer needed looses track of the memory it has requested and is said to "leak".

Regards!

...JRF...
Laurent Laperrousaz
Regular Advisor

Re: Memory Leakage

there are some tools to track memory leakage, one of them is valgrind (only on Linux) see http://valgrind.org/
for HP-UX you can use Rational Purify:
http://www-306.ibm.com/software/awdtools/purifyplus/
Indrajit_1
Valued Contributor

Re: Memory Leakage

Hi All;

Thanks all of you.

Cheers
Indrajit Roy
Never Ever Give Up