是否有任何方法监视scala.concurrent.ExecutionContext.Implicits.global的任务队列?看到等待线程释放的任务数量了吗?
发布于 2018-10-11 12:01:47
JDK与jconsole和jmc一起出现。您可以使用它们查看线程的使用情况。你可以看到,
scala隐式线程名以scala-execution-context-global-n开头。
jmc截图:

相关:what is the best way to get the number of futures running in background in an execution context?
https://stackoverflow.com/questions/52759431
复制相似问题