Hi guys, we currently do not provide such tools. Since threadpools are just a plain JVM thing, you can use any kind of JVM level monitoring tool you like.
For example we see projects using newrelic <https://www.newrelic.com/typesafe>, appdynamics <https://portal.appdynamics.com/account/signup/signupForm/> or kamon <http://kamon.io/> for these kinds of tools. When developing you can simply use tools like VisualVM and MissionControl etc. -- Konrad On Tue, Mar 31, 2015 at 11:21 AM, Richard Bradley < [email protected]> wrote: > 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. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
