1

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

Łukasz Lew
  • 45,986
  • 40
  • 137
  • 203
  • 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
  • 257,800
  • 54
  • 385
  • 479