Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get system/hardware info via Java? [duplicate]

Tags:

I need to get system and hardware info via a Java application.

I'm interested in:

  • Os details;
  • Processors count, names, processor load in percents;
  • Memory status (total/free);
  • Os process (threads) count and CPU/Memory usage for each of them;
  • Network statistic (for each interface);

Is there a Java library that can do this?

like image 443
Vladimir Kostyukov Avatar asked Jan 16 '11 05:01

Vladimir Kostyukov


2 Answers

  1. Using Java to get os level system Information will get you started in right direction.
  2. Finding Operating System Information
like image 194
Rachel Avatar answered Oct 11 '22 22:10

Rachel


i have used SIGAR and is a wonderful tool for getting all SysInfo programatically. +1

like image 20
Vivek Avatar answered Oct 11 '22 22:10

Vivek