0

I want to call APIs on ThreadMXBean from remote JVM.

example api:

    ThreadMXBean.getAllThreadIds()
    ThreadMXBean.getAllThreadCpuTime()

I'm looking for actual code snippet instead of general advice.

Essentially, it'd be a call on MBeanServerConnection. I'm able to get attributes, but not able to call operations.

RRM
  • 2,495
  • 29
  • 46
  • [this may help you](http://www.java2s.com/Code/Java/Development-Class/ThisFullThreadDumpclassdemonstratesthecapabilitytogetafullthreaddumpandalsodetectdeadlockremotely.htm) – Bhargav Modi Jul 19 '17 at 11:03
  • @BhargavModi I'm looking for how to call MBeanServerConnection.invoke() to call some operations (which accepts parameters) on remote ThreadMXBean. – RRM Jul 19 '17 at 13:18

0 Answers0