[R] Out of memory

Liaw, Andy andy_liaw at merck.com
Mon Aug 19 03:27:16 CEST 2002


I have run into similar problems occasionally on Windoze NT.  For whatever
reason, R refuses to do anything, including q("no").  The only way out was
to kill it via Task Manager.  Not sure how to make it reproducible.
Unfortunately Uwe's comments are not exactly helpful, though mostly true.

Cheers,
Andy

> -----Original Message-----
> From: Uwe Ligges [mailto:ligges at statistik.uni-dortmund.de]
> Sent: Saturday, August 17, 2002 12:27 PM
> To: Nikolaus Hansen
> Cc: r-help at stat.math.ethz.ch
> Subject: Re: [R] Out of memory
> 
> 
> Nikolaus Hansen wrote:
> > 
> > During a R session (Version 1.4.1 under Windows) I ended up 
> getting the following error message:
> 
> R-1.5.1 is recent.
> 
> 
> >   Error: vector memory exhausted (limit reached?)
> > 
> > independently of the command like rm(something), q(), ls(), 
> gc(), memory.size(), memory.limit(300000000),
> 
> ?memory.limit says: 
> 
> Usage: memory.limit(size = NA)
> Arguments: size  [...] request a new limit, in Mb. 
>                                                ^^
> So something like memory.limit(500) is more reasonable, 
> depending on the
> size of RAM in your machine.
> It is much more convenient to set  --mex-mem-size=500M  at the command
> line, how it works is described in the R for Windows FAQs.
> 
> 
> > What could I do now to save my data? How could I prevent 
> this situation?
> 
> a) Be sure a reasonable amount of memory was really allocated.
> b) Rewrite your R code to consume less memory and think about what is
> needed in memory at one time. Can you divide the computations into
> "smaller" ones releted to memory usage?
> c) Buy some more RAM.
> d) Wait ten years for a much bigger computer. ;-)
> 
> Uwe Ligges
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._._._._._._._
> 


------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message.  If you are not the intended recipient, and have received this message in error, please immediately return this by e-mail and then delete it.

==============================================================================

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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