scalala / Scalala

Scalala has been superseded by dlwh/breeze. Scalala is a high performance numeric linear algebra library for Scala, with rich Matlab-like operators on vectors and matrices; a library of numerical routines; support for plotting.
http://groups.google.com/group/scalala
GNU Lesser General Public License v2.1
298 stars 30 forks source link

Compilation fails when trying to publish-local #50

Closed mosesn closed 12 years ago

mosesn commented 12 years ago

The error that I get is:

[error] java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
dlwh commented 12 years ago

You need to provide the scala compiler with more memory. -Xmx2g should cover it.

mosesn commented 12 years ago

I was trying with 1g, and it didn't work. I tried again with 2g, and it still doesn't work. Here is the command I was using:

env JAVA_OPTS="-Xmx2g" sbt publish-local

I got it from stackoverflow. If you know of a better way to set memory, I would be glad to hear it.

dlwh commented 12 years ago

Your sbt file is probably overriding the JAVA_OPTS environment.

vim which sbt (or emacs, or whatever)) and change it there.

dlwh commented 12 years ago

err which sbt

mosesn commented 12 years ago

good call, I had forgotten the options were specified by the sbt script.

thanks for the help!