OS monitoring using JAVA
- by Puneri
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.