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

我的未来我决定 提交于 2019-11-26 19:37:02

问题


This question already has an answer here:

  • get OS-level system information 15 answers

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:


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



回答2:


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



来源:https://stackoverflow.com/questions/4704073/how-can-i-get-system-hardware-info-via-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!