From tlumley@u.washington.edu  Thu Sep 12 15:42:09 2002
From: tlumley@u.washington.edu (Thomas Lumley)
Date: Thu, 12 Sep 2002 07:42:09 -0700 (PDT)
Subject: Startup/Initialization Memory Leak in R
In-Reply-To: <5.1.1.5.2.20020911210204.00ac4270@pop.prism.gatech.edu>
Message-ID: <Pine.A41.4.44.0209120738510.155470-100000@homer34.u.washington.edu>


Note that this about initialisation of the R shared library R.so, not the
R executable.

This may need fixing -- with a standalone executable the operating system
will handle memory release when the program exits, but with an R library
dynamically loaded into another process it won't.

OTOH, why do you want to load and unload R lots of times?

	-thomas

On Wed, 11 Sep 2002, David Bauer wrote:

>     Is it already known that R does not free the memory that it allocates
> during start-up (~10MB) when it exits?  If so, are there currently any
> plans to address this problem?  I noticed that the 1.6.0 beta leaks
> slightly more memory (~300k) than the 1.5.1 stable version.
>
>     I am working on a project that links with the R library, and there is a
> question about unloading and later re-loading the R library, so this memory
> leak could become a real issue.


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Startup/Initialization Memory Leak in R
Thomas Lumley