开发者

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

开发者 https://www.devze.com 2023-02-04 18:37 出处:网络
This question already has answers here: 开发者_如何学运维 Get OS-level system information (17 answers)
This question already has answers here: 开发者_如何学运维 Get OS-level system information (17 answers) Closed 8 years ago.

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?


  1. Using Java to get os level system Information will get you started in right direction.
  2. Finding Operating System Information


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号