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.