For Windows, try memory.limit( size=XXX)
                     check memory limit: memory.size(max=TRUE)
For Mac or Linux, may try mem.limits(nsize=NA, vsize=NA) to check or set memory size
maybe this is helpful for the question here



-----Original Message-----
From: bioconductor-bounces@r-project.org on behalf of Sean Davis
Sent: Tue 1/10/2012 10:20 AM
To: wang peter
Cc: bioconductor@r-project.org
Subject: Re: [BioC] how to set R memory limit
 
On Tue, Jan 10, 2012 at 9:15 AM, wang peter <wng.peter@gmail.com> wrote:
> thank u to all of your replies
> sorry to miss the sessionInfo()
> R version 2.13.2 (2011-09-30)
> Platform: x86_64-unknown-linux-gnu (64-bit)
>
>
> but i think how to set R memory is nothing related with R version.

Memory use is related to R version, architecture, and operating
system.  These three details are returned by sessionInfo().

> i got many news to set it but donot know which one is correct
>
> i tried
> R --max-vsize=20G
> options(java.parameters = "-Xmx8192m")

--max-vsize of 20G will limit memory to approximately 20G; I thought
you said that you had 64G of memory.  Does this make sense?

Java parameters do not affect R directly, only JVMs started by the
rare R package that runs java, so this will not solve your original
problem.

> and also restarted the computer to clean the memory
>
> but i still have no ideas with R memory management
>

See help('Memory-limits').  However, on 64-bit linux, the original
error message you reported is related to not having enough memory to
complete the operation; there is generally no need to manually
increase memory.  As Steve suggested, run 'top' in another window to
watch R memory use.  Use gc() regularly and be sure to clean up your R
workspace.  If you still cannot do what you need, let us know what you
are trying to do by including code, errors, and the output of
sessionInfo().  Perhaps there is a way to do things with less memory
use.  In the end, you may need more memory, though.

Sean


 --
> shan gao
> Room 231(Dr.Fei lab)
> Boyce Thompson Institute
> Cornell University
> Tower Road, Ithaca, NY 14853-1801
> Office phone: 1-607-254-1267(day)
> Official email:sg839@cornell.edu
> Facebook:http://www.facebook.com/profile.php?id=100001986532253

_______________________________________________
Bioconductor mailing list
Bioconductor@r-project.org
https://stat.ethz.ch/mailman/listinfo/bioconductor
Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor


	[[alternative HTML version deleted]]

