Chris W.
Chris W.

Reputation: 2376

Monitoring queue of ExecutionContextExecutor "scala.concurrent.ExecutionContext.Implicits.global"

Is there any way to monitor the task queue of scala.concurrent.ExecutionContext.Implicits.global? ie., see the number of tasks waiting for a thread to be released?

Upvotes: 0

Views: 686

Answers (1)

prayagupadhyay
prayagupadhyay

Reputation: 31232

JDK comes along with jconsole and jmc. You can use them to see thread usage. You can see,

  • Thread state,
  • blocked count
  • thread allocated bytes etc

scala implicit threads name start with scala-execution-context-global-n.

jmc screenshot:

jmc screenshot

Related: what is the best way to get the number of futures running in background in an execution context?

Upvotes: 1

Related Questions