Version française
Home     About     Download     Resources     Contact us    
Browse thread
Fatal error: out of memory
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Sven Luther <sven.luther@w...>
Subject: Re: [Caml-list] Fatal error: out of memory
On Sat, Nov 05, 2005 at 12:56:21PM +0100, Sarah DJEBALI wrote:
> Hi,
> 
> I am using ocaml 3.08, and when running my executable on certain kind of 
> data I get the message :
> Fatal error: out of memory.

Can you please try with 3.09 in experimental ?

> To diagnose the problem and as adviced in the user manual,  I have run 
> ocamlrun with the option -v.
> It displays lots of "growing heap..." messages with the heap size 
> growing slowly.
> In such situations the user manual says there is an attempt to construct 
> a data structure with too many cells.

Well, usually you get this behavior because your application is not written
optimally, especially with recursive functions.

> I know this may look a very naive question,
> but is is possible to increase the heap size?

Probably, but not sure it will solve your problem. There is an ocaml-beginner
mailing list somewhere which would be more appropriate though, as here we
usually deal with packaging issues mostly.

Friendly,

Sven Luther