Version française
Home     About     Download     Resources     Contact us    
Browse thread
Hunting a memory leak
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Tiphaine Turpin <Tiphaine.Turpin@i...>
Subject: Hunting a memory leak
Hi,

I have a serious problem with a memory leak that I cannot spot. My code
is basically a while loop, and the heap is constantly growing at each
iteration, so I assume that I have some mutable datastructure allocated
before entering the loop which grows to much. But all those I can think
of are either obviously correct or have a small "objsize". A last
precision : I am interfacing with some C code (mlcuddidl), but the leak
seems to be in the Caml heap according to Gc.heapwords.

What is the methodology for addressing this kind problems ? Is there any
tool that would tell me the roots of the biggest parts in the heap ?

Thanks,

Tiphaine