So you mean we can poll an external (to the JVM) snmp agent running on the same box to get the CPU/Memory info from the operating system?
The memory monitor is already implemented, but I think it may be interesting for the cpu monitor..
You add thourgh an external dependency...
As long as mib-polling is supported by external agent,
CPU, memory, storage, device... you name it.
e.g., host-resource-mib
http://www.faqs.org/rfcs/rfc2790.html
which is supported by net-snmp agent.
Do you mean I can check in code as external dependency?
Any document explain this?
The problem with these approaches is tha they are OS dependent. You can use bytecode rewriting to make the solution os independent. For example
http://jain-sip-appserver.dev.java.net
We are considering it for use in our slee project
http://mobicents.dev.java.net
Ranga.
Range, can you elaborate on this, I don't really get it.
We want to measure CPU usage for the JBoss JVM.
How would it help if we load some class or even bytecode manipulate it?