Home  Easy-Code   Forum    Updater 


Not signed in (Sign In)
    • CommentAuthorbrother2
    • CommentTimeMar 30th 2012
     
    Following approach helps in identifying the memory leaks using MALLOCTYPE and MALLOCDEBUG in AIX platforms,

    export MALLOCTYPE=debug
    export MALLOCDEBUG=report_allocations,stack_depth:5
    ./exename 2>leakreport_exename

    The increase in the depth of stack impacts the performance of the application and there various option for MALLOCDEBUG and the above shows only the memory leak report.
    • CommentAuthorbrother2
    • CommentTimeMay 4th 2012
     
    The below link has more details and automation script for readable format of report,

    http://www.ibm.com/developerworks/aix/library/au-mallocdebug.html