0

As describe in https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ForkJoinPool.html for customizing ForkJoinPool ThreadFactory I need to start java with extra parameter java.util.concurrent.ForkJoinPool.common.threadFactory=MyThreadFactory

But when the application starts by the sbt firstly start jvm for sbt. And when jvm start it tries to create ForkJoinPool with MyThreadFactory.class which does not exist in this phase.

Secondly, sbt start application inside available jvm. Now MyThreadFactory.class available for loading but initialization ForkJoinPool already finished in the previous phase.

So my question is How to customize default ForkJoinPool in sbt application.

theSemenov
  • 389
  • 4
  • 17

0 Answers0