Reputation: 151
Hi for the past few days, I started working on JMX. Am not sure how to derive an mathematical formula to find 'the maximum amount of load that a processor can support' by computing various other factors using JMX (using Java program). Can anyone please suggest me how to derive an mathematical formula to find the maximum amount of load that a processor can support. Or is there any inbuilt function to find that.? Is it really possible to do the same using JMX or i need to shift to some other method?
Upvotes: 0
Views: 720
Reputation: 16516
You can Use javamelody to find out Memory usage, CPU usage, and Http session Usage like Below:
or you can use SIGAR, it provides a portable interface for gathering system information.
Edit: For your scenario you can use Class ManagementFactory.
The platform MBean server was introduced in the Java 2 Platform, Standard Edition 5.0, and is an MBean server that is built into the Java Virtual Machine (
Java VM
). The platform MBean server can be shared by all managed components that are running in the Java VM. You access the platform MBean server using thejava.lang.management.ManagementFactory
methodgetPlatformMBeanServer
.
Documentaion: management_mxbeans
Upvotes: 3