I found this older article how-to-monitor-the-computers-cpu-memory-and-disk-usage-in-java and wated to ask, if there is something new in java 7. I want to get the current CPU
why cant you just use like bellow,
try { for (String ni : sigar.getNetInterfaceList()) { NetInterfaceStat netStat = sigar.getNetInterfaceStat(ni); total+=netStat.getRxBytes(); } } catch (SigarException e) { e.printStackTrace(); }
what is the difference???