Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: memory exhausted (limit reached?)

Tags:

r

Does any one know how to resolve this error ? I am using R in macbook pro. I am using a clustering package calld rsgcc

thm <- gcc.tsheatmap(b[2:5264,], cpus = 1, cormethod = "GCC", distancemethod = "Raw", clustermethod = "complete")
Dimension information for clustered GE matrix: 5263 9


R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
R(18015,0xac5c3a28) malloc: *** mmap(size=16777216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
Error: memory exhausted (limit reached?)

My session Info is

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)

locale:
[1] C/UTF-8/C/C/C/C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base 
like image 343
ferrelwill Avatar asked Jan 27 '13 17:01

ferrelwill


1 Answers

Like @arun commented, you need to start using 64 bit R to be able to use the full potential of the 16 gigabytes o of RAM you have. Right now, R can use about 3 gb...

like image 150
Paul Hiemstra Avatar answered Oct 05 '22 07:10

Paul Hiemstra