Measuring Resource Utilization

Hi,

I'm working on a project for my M.Sc. degree. I need to measure the utilization of the machines' resources. Is there any way to access such measurements from Java? Or is there a Java framework or open source project capable of this? I tried using NSClient4J but for some reason it seems inaccurate and does not capture changes quickly from Windows performance counters. I'm not bound to Windows by the way. Linux would be nice.

Note, I don't won't to measure the application's performance on the JVM but the system's performance as a whole (CPU utilization, free memory, free disk space, etc.)

Thanks in advance for any help of advice.

[671 byte] By [informer2000a] at [2007-10-2 19:27:50]
# 1
You should be able to obtain this information for the whole system.Measure the usage before you run the application. ideally with as little running as possible and then measure the system usage when the system is running.
Peter__Lawreya at 2007-7-13 21:14:12 > top of Java-index,Java Essentials,Java Programming...
# 2

Thanks for the reply Peter. But that is exactly my question (i.e. how can I measure these from Java). When I used NSClient4J, I measured the resource's utilization at regular intervals. But when I start some resource intensive application, this was not reflected appropriately in the measurements. That's I was asking if someone knows of another method/tool for doing this.

Ahmed

informer2000a at 2007-7-13 21:14:12 > top of Java-index,Java Essentials,Java Programming...
# 3
Whenever you want to do something that has the term "system resources" in itd description, it's fairly likely that Java is absolutely the wrong language for whatever you want to do. Like this time.
CeciNEstPasUnProgrammeura at 2007-7-13 21:14:12 > top of Java-index,Java Essentials,Java Programming...