How to determine if a process leaks memory? (78 Views)
Reply
Visitor
Sanjaya2005
Posts: 1
Registered: ‎02-20-2012
Message 1 of 3 (78 Views)

How to determine if a process leaks memory?

Hi,

 

We usually monitors VSize of a process over a period of time while doing similar/repeated operations. If VSize remains constant, then we conclude that the process does not leaks memory. If we observe continuous growth of VSize, then we suspect that the process is leaking memory. Is my understanding correct ? We are using HPUX Itanium 11.31.

 

Thanks and Regards

Sanjaya

Please use plain text.
Honored Contributor
Bill Hassell
Posts: 14,178
Registered: ‎05-29-2000
Message 2 of 3 (59 Views)

Re: How to determine if a process leaks memory?

'Leaking memory' is just a simple term for poor programming technique where temporary memory areas are requested but never returned when no longer needed. It is not unusual for a program to grow rapidly at the beginning, but taper off and never change after a long time. It all depends on how the program is supposed to work. if a program starts small and contunues to grow continuously over days or weeks, then a memory leak can be the reason. Ask the programmer. If no programmer, restart the program or ask for a patch to fix the uncontrolled growth.

Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,767
Registered: ‎03-06-2006
Message 3 of 3 (57 Views)

Re: How to determine if a process leaks memory?

>If we observe continuous growth of VSize, then we suspect that the process is leaking memory.

 

Either you are leaking memory or you have heap fragmentation.  The latter is something a developer would be normally expecting.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation