Re: Uncaught exception: Out_of_memory

Xavier Leroy (xavier@Theory.Stanford.EDU)
Thu, 10 Feb 1994 11:47:34 -0800 (PST)

From: Xavier Leroy <xavier@Theory.Stanford.EDU>
Message-Id: <9402101947.AA24871@Tamuz.Stanford.EDU>
Subject: Re: Uncaught exception: Out_of_memory
To: jairo@cesma.usb.ve (Jairo A. Medina)
Date: Thu, 10 Feb 1994 11:47:34 -0800 (PST)
In-Reply-To: <9402101609.AA01844@Pantaleon > from "Jairo A. Medina" at Feb 10, 94 12:09:51 pm

> #t2list c;;
> Uncaught exception: Out_of_memory
>
> How can i increase the memory handled by the camllight system?

Caml Light has (almost) no "hard" limits on memory: it will allocate
as much as needed, unless the memory resources of the machine are
exhausted. On a Unix machine without soft limits or memory quotas,
this means the whole swap space, and there's not much you can do to go
beyond that limit.

Most often, the "Out_of_memory" error is caused by a looping program,
e.g. a non-terminating recursion that causes the stacks to grow
infinitely. (See the discussion at the end of the chapter on the
runtime system in the Caml Light manual.)

Another likely cause is trying to allocate a string or array of an
unreasonable size.

Try to trace some of your functions to see what's going on.

Regards,

- Xavier Leroy