• Post Reply Bookmark Topic Watch Topic
  • New Topic

relationship between Executor and ThreadMXBean  RSS feed

 
Ahmed Basheer
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22866
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!