Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Memory leak
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Martin Jambon <m.jambon@i...>
Subject: Re: [Caml-list] Memory leak
On Mon, 15 Apr 2002, Martin Jambon wrote:

> Hello,
> Is it possible that non-negligible amounts of unreachable data are never
> freed by the GC?
> My program seems to waste memory, even with Gc.max_overhead set to 50 (or
> even 0).
> What should I do?

It appears finally that explicit calls to Gc.compact solve the problem (or
at least one of my problems).

Setting Gc.max_overhead to a given value (e.g. 50%) didn't work in this
Symptom: compactions are performed until a certain point
(in my case, 67 compactions), and then no compaction is triggered anymore
for a very long (infinite?) time, resulting in a linear increase of the

Thanks to all those that sent me their suggestions.

Au passage, un grand merci à l'équipe Caml pour son travail de très haute

Martin Jambon

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: