using top utility to monitor process's possible mem leak
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > using top utility to monitor process's possible mem leak




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    using top utility to monitor process's possible mem leak  
wenmang@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:48 PM

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.






[ Post a follow-up to this message ]



    Re: using top utility to monitor process's possible mem leak  
Eric Sosman


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Re: using top utility to monitor process's possible mem leak  
Joe Estock


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-24-05 08:49 PM

wenmang@yahoo.com wrote:
> 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.
>
Try valgrind [ http://www.valgrind.org/ ]. It's an excellent tool for
memory related issues/concerns.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:37 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register