Scala: How to give SBT more memory (RAM) to work with
By Alvin Alexander. Last updated: May 13 2018
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: