Quantcast
Channel: command
Viewing all articles
Browse latest Browse all 11

Scala: How to give SBT more memory (RAM) to work with

$
0
0

Scala: How to give SBT more memory (RAM) to work with

As a brief note, I was trying to run a Scala application inside SBT today and kept getting this “out of memory” error:

[error] (run-main-0) java.lang.OutOfMemoryError: GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded

The solution to the problem was to allocate more memory when I start SBT. To give SBT more RAM I first issue this command at the command line:


Viewing all articles
Browse latest Browse all 11

Trending Articles