1833758 Members
2699 Online
110063 Solutions
New Discussion

Memory Leak

 
Steve Massey_1
Frequent Advisor

Memory Leak

Hi

What is typically meant by a memory leak, and how can one find out, and then how to deal with it

thanks in advance

Steve
2 REPLIES 2
melvyn burnard
Honored Contributor

Re: Memory Leak

Simplistically, a memory leak is where a program obtains memory to run, and at some stage should either stop requesting memory space, or at least free up some that it already obtained, but does neither. Instead, it tends to keep on requesting more memory, thus reducing available memory for other processes.
The GLANCE product helps here, as you can see per process what the RSS (Resident Stack Size ) is, and which process is using memory, and the one way to tell is where the memory useage of a process just keeps on growing!

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
CHRIS_ANORUO
Honored Contributor

Re: Memory Leak

Memory Leak occurs when your programs are running very slow and do a memory core dump.
You can find out by using sar, vmstat, top and the glance software.
sar, top and vmstat can be read up through the online manuals.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.