1

Normally I call in bash "mpstat 1". Is there an equivalent Java library to aviod calling bash and parsing mpstat output?

Łukasz Lew
  • 48,526
  • 41
  • 139
  • 208
  • 2
    See [ How to monitor the computer's cpu, memory, and disk usage in Java? ](http://stackoverflow.com/questions/47177/how-to-monitor-the-computers-cpu-memory-and-disk-usage-in-java). – Matthew Flaschen Sep 09 '10 at 22:23

1 Answers1

1

You can get the average for the last minute via the management API.

erickson
  • 265,237
  • 58
  • 395
  • 493