Bagira
Bagira

Reputation: 2243

Monitoring CPU usage of 2 JVMs running on a single machine

I have two JVMs running on a single machine. I am able to monitor the CPU usage of every single JVM using jConsole but now I have a different scenario.

I also need CPU usage of both JVMs combined. This would give me graph that will show the CPU usage of both JVMs combined.

Can anyone suggest me some tool that could give me the desired result?

Also, I should be able to specify the 2 JVMs for which I need combined results as there could be more than 2 JVMs running simultaneously on the machine.

Upvotes: 0

Views: 421

Answers (2)

MRalwasser
MRalwasser

Reputation: 15953

jvmtop shows you all (accessible) jvms and there cpu/memory usage in a top-like manner.

Upvotes: 0

Abhinav Sarkar
Abhinav Sarkar

Reputation: 23782

JConsole uses JMX to get the CPU usage from the JVMs. You can write your own JMX client which find this info from the required JVMs directly and combine them (and show them in a graph or something).

Upvotes: 1

Related Questions