[R] cannot allocate memory

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Sep 24 09:32:34 CEST 2008



DumpsterBear wrote:
> I am getting "Error: cannot allocate vector of size 197 MB".
> I know that similar problems were discussed a lot already, but I
> didn't find any satisfactory answers so far!
> 
> Details:
> *** I have XP (32bit) with 4GB ram. At the time when the problem
> appeared I had 1.5GB of available physical memory.
> *** I increased R memory limit to 3GB via memory.limit(3000)


Have you told Windows to allow processes of more than 2GB?


> *** I did gs() and got

gc(), I think.

Uwe Ligges


>                 used  (Mb) gc trigger   (Mb)  max used   (Mb)
> Ncells    147534   4.0     407500   10.9    407500   10.9
> Vcells 104939449 800.7  186388073 1422.1 185874684 1418.2
> 
> The garbage collection didn't help.
> 
> Any ideas? Many thanks in advance!
> 
> -- Adam
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list