The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to check memory leak in C program under Unix useless79 High Level Programming 6 10-12-2008 10:39 AM
about virtual memory and memory leak shriashishpatil High Level Programming 4 02-20-2006 08:31 AM
Comman/Tool to check memory leak in solaris box rajeshlbryan UNIX for Dummies Questions & Answers 1 09-02-2005 06:58 AM
memory leak? lenna IP Networking 1 07-16-2005 01:29 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-02-2008
Registered User
 

Join Date: Jul 2008
Posts: 34
Check memory leak

I am running c++ code on AIX unix.I have a doubt that my code is using some memory but it is not clearing that.Some time i am getting heap allocation problem.In my code i am not using any malloc,new functions also i am justing using pointers and arrays.

Is there any way i can find out if the memory block is filled and it is released for a particular user.

Please help me the way to find the solution for this.

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 10-06-2008
Registered User
 

Join Date: Oct 2008
Posts: 29
prstat -p pidofyourCprogram interval > checkmem.log &
tail -f checkmem.log
Reply With Quote
  #3  
Old 10-07-2008
Registered User
 

Join Date: Jul 2008
Posts: 34
It seems we dont have prstat on AIX Unix.

I am getting the following error when i run prstat

ksh: prstat: not found

Thanks
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0