Łukasz Lew
Łukasz Lew

Reputation: 50338

How can I get system load/cpu usage from Java?

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

Upvotes: 1

Views: 5251

Answers (1)

erickson
erickson

Reputation: 269857

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

Upvotes: 1

Related Questions