0

I have created a custom Execution Context (FixedThreadPool with 100 workers) in Scala to run IO Bound Futures. I am making db calls to Cassandra in these futures.

I have made the context available to the DB related Futures. In the log messages I see that these threads are getting executed in the specified thread pool.

enter image description here

However Visual VM tells a different story.

enter image description here

This shows that the threads have a CPU utilisation of 0%.

What am I missing here ?

Utsav
  • 536
  • 2
  • 6
  • 18
  • I you are using non blocking async driver than you will not see any CPU utilization at application level – Nagarjuna Pamu Jul 07 '18 at 09:58
  • Even though that async call gets executed from within a Future ? In that case the Future needs to be scheduled to get to the async execution part. – Utsav Jul 07 '18 at 12:47

0 Answers0