How to get the total heap size of the process - Linux

This is a discussion on How to get the total heap size of the process - Linux ; Hi all, Is there any way to get the total heap size of the process in c on linux platform? -- Ganesh...

+ Reply to Thread
Results 1 to 3 of 3

Thread: How to get the total heap size of the process

  1. How to get the total heap size of the process

    Hi all,
    Is there any way to get the total heap size of the process in c on
    linux platform?

    --
    Ganesh


  2. Re: How to get the total heap size of the process

    ganesh.kundapur@gmail.com wrote:
    > Hi all,
    > Is there any way to get the total heap size of the process in c on
    > linux platform?
    >
    > --
    > Ganesh
    >

    You can get the total size of all rw segments by reading
    /proc/self/maps; unfortunately you cant make the difference between
    stack, data, bss, and heap (at least, not easily).

    Cheers,
    --
    Michel Bardiaux
    R&D Director
    T +32 [0] 2 790 29 41
    F +32 [0] 2 790 29 02
    E mailto:mbardiaux@mediaxim.be

    Mediaxim NV/SA
    Vorstlaan 191 Boulevard du Souverain
    Brussel 1160 Bruxelles
    http://www.mediaxim.com/

  3. Re: How to get the total heap size of the process


    ganesh.kundapur@gmail.com wrote:
    > Hi all,
    > Is there any way to get the total heap size of the process in c on
    > linux platform?
    >
    > --
    > Ganesh


    Can you clarify what you mean by "heap size"?

    DS


+ Reply to Thread