On scala project - Getting error GC overhead limit exceeded when running sbt test command
问题 I'm new in scala programming and getting GC overhead limit exceeded error when I execute sbt test command in one of big scala project. Anyone knows how can I solve this? 回答1: I got help from my friends :) Increase the memory option by executing with -mem option for example: sbt -mem 2048 test Other options: For Mac & Linux user: if we need to execute this a lot. We can update the .bash_profile file and add below command: export SBT_OPTS="-Xmx2G" Other solution (works with Windows as well):