NICTA/scoobi — Issue #11: Memory issues when compiling Scoobi
Author: benwing
Created: 2011-11-15 05:46:21+00:00
State: open

Hi. For some reason Scoobi seems to require a LOT of memory when compiling it. My 'sbt' script set the maximum heap to 512 MB and this led to heap-exhausted errors compiling Scoobi, even though I've compiled larger Scala apps without problem. Increasing to 1024 MB didn't help, nor did simply leaving off the -Xmx option and letting the JVM pick its own heap size. I jacked it all the way up to 4096 MB -- somewhat dicey since my laptop only has 4GB total of memory -- and this worked; the compiler seemed to top out at a bit under 2 GB.

You might want to document this since I expect others will run into the same problem. The 512 MB max heap size is the default recommended on the SBT installation page:

https://github.com/harrah/xsbt/wiki/Getting-Started-Setup