OS monitoring using JAVA
Posted
by
Puneri
on Stack Overflow
See other posts from Stack Overflow
or by Puneri
Published on 2012-12-19T16:46:55Z
Indexed on
2012/12/19
17:03 UTC
Read the original article
Hit count: 185
I'm planning to implement a framework for monitoring OS level resources:
- process
- network stats
- cpu info etc
using JAVA.
I see there is SIGAR API by Spring, which is implemented in native language and JAVA API being provided on top.
But I will prefer not to have native stuff in my framework, rather for each OS will write a Java Class which will fetch required OS info by running system commands via JAVA Runtime.
So I would like to have inputs/suggestions that one may have seen of not doing this in JAVA and use native app/api/jni. Any example will help for sure. I agree each OS has different commands to get these stats, but will prefer to have a Java Class per OS than have/load native code.
© Stack Overflow or respective owner