[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2008-07-26 (19:15) |
From: | Jean Krivine <jean_krivine@h...> |
Subject: | Manually triggering garbage collection |
Dear list, I am running a memory intensive stochastic simulator written in ocaml. After initialization of the data structure (which eats up a lot of memory but that's normal) I observe a memory leak during the simulation which should not be there. I noticed that if I run Gc.major() every n computation events after initialization (I can make n vary), then there is no more memory leak (the memory the process is using is constant). So my question is the following: Is there a rational way to detect I should call for Gc.Major()? (for the moment I am triggering it every n events which is arbitrary) Thank you very much Jean