I haven't found anything great along these lines, and I'd also be
interested in an "official" answer.
Akka in its default configuration will use a single ForkJoinPool for the
ActorSystem. If you can get a direct reference to the underlying
ForkJoinPool, it has a handful of methods which can give diagnostic
information.
forkJoinPool.getPoolSize
forkJoinPool.getParallelism
forkJoinPool.getActiveThreadCount
forkJoinPool.getRunningThreadCount
forkJoinPool.getQueuedSubmissionCount
forkJoinPool.getQueuedTaskCount
We are currently using code a bit like the following to extract the
underlying ForkJoinPool from ActorSystem.dispatcher:
private def getExecutorServiceViaReflection(dispatcher: Dispatcher):
Try[ExecutorServiceDelegate] = Try {
val executorServiceMethod: Method =
classOf[Dispatcher].getDeclaredMethod("executorService")
executorServiceMethod
.invoke(dispatcher)
.asInstanceOf[ExecutorServiceDelegate]
}
getExecutorServiceViaReflection(system.dispatcher).get.executor.asInstanceOf[AkkaForkJoinPool]
This won't work if you have configured anything other than the default
dispatcher. Your question about "individual thread pool usage" suggests
that perhaps you have, so maybe you'll need to do something more
complicated.
Hope this helps,
Rich
On Monday, March 30, 2015 at 9:57:10 AM UTC+1, [email protected] wrote:
>
> Are there some integration points within the Akka framework where it is
> possible to get information about individual thread pool usage?
>
> Regards,
>
> Nils-Helge Garli Hegvik
>
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.