caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Fatal error: out of memory
@ 2005-11-05 11:56 Sarah DJEBALI
  2005-11-05 12:07 ` [Caml-list] " Sven Luther
  2005-11-10 14:51 ` Damien Doligez
  0 siblings, 2 replies; 4+ messages in thread
From: Sarah DJEBALI @ 2005-11-05 11:56 UTC (permalink / raw)
  To: caml-list

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.

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.

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

Thank you in advance
Sarah

-- 
************************************************************
Sarah Djebali
Laboratoire Dynamique et Organisation des Genomes (DyOGen)
CNRS UMR 8541
ENS, 46 rue d'Ulm, 75005 Paris 
email : djebali@ens.fr
Tel : 0033 1 44 32 23 74


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Fatal error: out of memory
  2005-11-05 11:56 Fatal error: out of memory Sarah DJEBALI
@ 2005-11-05 12:07 ` Sven Luther
  2005-11-05 17:09   ` Sven Luther
  2005-11-10 14:51 ` Damien Doligez
  1 sibling, 1 reply; 4+ messages in thread
From: Sven Luther @ 2005-11-05 12:07 UTC (permalink / raw)
  To: Sarah DJEBALI; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Fatal error: out of memory
  2005-11-05 12:07 ` [Caml-list] " Sven Luther
@ 2005-11-05 17:09   ` Sven Luther
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Luther @ 2005-11-05 17:09 UTC (permalink / raw)
  To: Sven Luther; +Cc: Sarah DJEBALI, caml-list

On Sat, Nov 05, 2005 at 01:07:42PM +0100, Sven Luther wrote:
> 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 ?

Oh, well, i messed up the mailing list, sorry about that, please ignore my
debian related comments.

> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs

Still the beginner list above may be more appropriate, not sure if you where
there before.

Friendly,

Sven Luther


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Fatal error: out of memory
  2005-11-05 11:56 Fatal error: out of memory Sarah DJEBALI
  2005-11-05 12:07 ` [Caml-list] " Sven Luther
@ 2005-11-10 14:51 ` Damien Doligez
  1 sibling, 0 replies; 4+ messages in thread
From: Damien Doligez @ 2005-11-10 14:51 UTC (permalink / raw)
  To: caml users

On Nov 5, 2005, at 12:56, Sarah DJEBALI wrote:

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

The heap size increases automatically until your OS refuses to  
allocate more
memory to your program, then you get the "out of memory" message.

Your program is probably trying to build a data structure that is too  
big for
your computer.

-- Damien


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-10 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-05 11:56 Fatal error: out of memory Sarah DJEBALI
2005-11-05 12:07 ` [Caml-list] " Sven Luther
2005-11-05 17:09   ` Sven Luther
2005-11-10 14:51 ` Damien Doligez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).