Allocate more RAM to Rstudio for running UMAP

As I suspected, the package you are using is a wrapper for a Java library so you need to configure the Java virtual machine to use more RAM. For example, this will set the limit to 140GB

options(java.parameters="-Xmx140G")

I think they have a technical reason for capping RAM usage to 40%, although, I'm not familiar enough with Java to know what that reason might be.

1 Like