sbt-jacoco icon indicating copy to clipboard operation
sbt-jacoco copied to clipboard

java.lang.OutOfMemoryError: unable to create new native thread when running large jacoco:test-only -- task on OSX 10.10 Yosemite

Open linjer opened this issue 9 years ago • 0 comments

I have a fairly large project with lots of tests and on my computer only, running sbt "jacoco:test-only --" and Keys.fork in jacoco.Config := true, the task consistently dies at the same place, throwing java.lang.OutOfMemoryError: unable to create new native thread.

After much research, it looks like it may be due to the way the process allocates threads. Mac OSX seems to have a limit of 2048 taskthreads and cannot be changed, and this seems to be the limit that is being hit, but not completely sure.

linjer avatar May 28 '15 01:05 linjer