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

2

23

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?

Schutt answered 16/1, 2011 at 5:57 Comment(3)
"I looking for Java library for this" asking for library recommendations is (now) off topic.Betsey
@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.Disinfest
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.Deputize
B
32
  1. Using Java to get os level system Information will get you started in right direction.
  2. Finding Operating System Information
Brute answered 16/1, 2011 at 6:2 Comment(3)
Great link! Thanks from the non-OP! Sigar looks quite impressive. Have you used this Rachel?Contraposition
Thanks! I think SIGAR solves my problems.Schutt
Yes, SIGAR is indeed very useful.Brute
N
1

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

Nananne answered 8/8, 2013 at 6:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.