[R] Erro: cannot allocate vector of size 216.0 Mb

José Augusto Jr. jamajbr at gmail.com
Sun Jul 20 21:24:52 CEST 2008


Please,

I have a 2GB computer and a huge time-series to embedd, and i tried
increasing memory.limit() and memory.size(max=TRUE), but nothing.

Just before the command:

> memory.size(max=TRUE)
[1] 13.4375
> memory.limit()
[1] 1535.875
> gc()
         used (Mb) gc trigger (Mb) max used (Mb)
Ncells 209552  5.6     407500 10.9   350000  9.4
Vcells 125966  1.0     786432  6.0   496686  3.8
>


I  increased the memory limit:

> memory.limit(3000)
NULL
> memory.limit()
[1] 3000
> memory.size()
[1] 11.33070
> memory.size(max=TRUE)
[1] 13.4375
> gc()
         used (Mb) gc trigger (Mb) max used (Mb)
Ncells 209552  5.6     407500 10.9   350000  9.4
Vcells 125964  1.0     786432  6.0   496686  3.8
>


And even trying to increase the memory.limits, i still get and error.

Any sugestions?


Thanks in  advance.

jama



More information about the R-help mailing list