| Author |
relationship between Executor and ThreadMXBean
|
Ahmed Basheer
Ranch Hand
Joined: Apr 15, 2004
Posts: 77
|
|
If I use the PooledExecutor for running my threads and ThreadMXBean for monitoring and managing these threads, is there any realtionship between the two? In other words do I have to manually get the threads reference from PooledExecutor and monitor it in the ThreadMXBean. Both of these are new features in JDK1.5 but I am surprised that there is no connection between these two specific features. Any suggestions/opinion is appreciated. Thanks, Basheer
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16695
|
|
In this case, I believe it is a design issue. The MBean that monitors the threading system, monitors it at the thread system level. That is how it was designed. I guess it wouldn't be that hard to develop another mbean that gets registered when thread pools are created. You just need some experience with JMX. Henry [ December 30, 2005: Message edited by: Henry Wong ]
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
 |
|
|
subject: relationship between Executor and ThreadMXBean
|
|
|