[R] R process size growing in time...

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Sun Oct 13 22:07:03 CEST 2002

Laurent Gautier <laurent at cbs.dtu.dk> writes:

> Dear all,
> I observed that the R process is growing in time (I was working with
> the same session for two days, and the size reached 300 Mb). Explicit
> calls to 'gc()' did show a trigger around 90 Mb but did not change
> the RSS (while I remembered that my linux was nicely behaving before
> and the process size was shrinking when R was freeing memory...). I
> ended up saving the session, ending it then starting it again (and
> the process size was around 90 Mb).
> I do not know whether this was caused by the recent changes in the
> garbage collection, or by possible leaks in the libraries/functions
> I have been using (mainly 'hclust' and 'cmdscale').
> Did anybody experienced something similar ?

Achim found a rather nasty memory leak, traced to the deparsing code.
You might want to try the current r-patched snapshot and see if your
problem goes away.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
r-help 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-help-request at stat.math.ethz.ch

More information about the R-help mailing list