How can I get system/hardware info via Java?

74,593

Solution 1

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

Solution 2

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

Share:
74,593

Related videos on Youtube

Vladimir Kostyukov
Author by

Vladimir Kostyukov

Currently hacking Finagle at Twitter.

Updated on July 09, 2022

Comments

  • Vladimir Kostyukov
    Vladimir Kostyukov almost 2 years

    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?

    • Raedwald
      Raedwald about 10 years
      "I looking for Java library for this" asking for library recommendations is (now) off topic.
    • Honza Zidek
      Honza Zidek about 9 years
      @Raedwald: That's a pity. I think such a type of questions are needed. The OP formulated the request very clear and concrete. We should not be so fundamentalistic - my understanding is that the rule you are mentioning should be used mainly for avoiding opinion-based questions. However this particular question is technical.
    • Stephen C
      Stephen C almost 3 years
      For those who doubt the wisdom of the library recommendations being off-topic, just look at the quality of the answers to this question. 1) An answer that just links to other Q&A's. 2) An answer that just says "i have used SIGAR and is a wonderful tool for getting all SysInfo programatically. +1". 3) A "me too" answer ... deleted.
  • Hovercraft Full Of Eels
    Hovercraft Full Of Eels over 13 years
    Great link! Thanks from the non-OP! Sigar looks quite impressive. Have you used this Rachel?
  • Vladimir Kostyukov
    Vladimir Kostyukov over 13 years
    Thanks! I think SIGAR solves my problems.
  • Rachel
    Rachel over 13 years
    Yes, SIGAR is indeed very useful.