[
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: | 2006-07-15 (17:06) |
From: | Alexander Fuchs <alexander.fuchs@u...> |
Subject: | Re: [Caml-list] Limiting Memory Usage |
Hi, Chris King wrote: > Did you look at Gc? It's not a hard limit but periodically checking > (quick_stat ()).heap_words will give you a rough estimate of how much > memory your program is using (not exact since it doesn't count > code/stack/etc.). thanks for the suggestion. For some reason I thought that monitoring memory usage by calling the Gc functions often tends to be expensive. But someone suggested to use Gc.create_alarm, and this works fine. Thanks, Alexander