10-24-05 08:49 PM
wenmang@yahoo.com wrote On 10/24/05 11:05,:
> Hi,
> I am trying to see whether a process has mem leak or not. I am suing
> top utility program to do so. After the program is done with load test,
> I cannot see that the program size is not graduately dropping as I
> expect. I understand that it may take sometime before OS gets back the
> heap memory, but is it a good way to monitor mem leak through top?
> thans.
"Most implementations of malloc/free do not return freed
memory to the operating system (if there is one), but
merely make it available for future malloc calls within
the same program."
-- comp.lang.c Frequently Asked Question #7.25
http://www.eskimo.com/~scs/C-faq/top.html
--
Eric.Sosman@sun.com
[ Post a follow-up to this message ]
|