Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

"Invalid argument" Error for Sigar 1.6.4 on AIX

$
0
0
Hi all!

I wrote a simple code to test the preformance of sigar on aix. But i met this strange error :

==========================================

org.hyperic.sigar.SigarException: Invalid argument
        at org.hyperic.sigar.Cpu.gather(Native Method)
        at org.hyperic.sigar.Cpu.fetch(Cpu.java:30)
        at org.hyperic.sigar.Sigar.getCpu(Sigar.java:320)
        at org.hyperic.sigar.Sigar.getCpuPerc(Sigar.java:341)
        at TestMain.main(TestMain.java:14)

==========================================

Here is my code:

==========================================

import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;


public class TestMain {
     public static void main(String[] args) throws Exception {
          Sigar sigar = new Sigar();
          System.out.println(sigar.getCpuPerc());
     }
}

==========================================

If anyone had met this error before??

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>