How to get the reason for failed to load SIGAR

Continuing the discussion from Failed to load SIGAR:

also i noted that there should also a LOG.debug just after the to tell the reason why failed to load SIGAR. but i have not got this in IntelliJ IDEA, why ?:

    public SigarService() {
        Sigar sigar = null;
        try {
            sigar = new Sigar();
            LOG.debug("Successfully loaded SIGAR {}", Sigar.VERSION_STRING);
        } catch (Throwable t) {
  "Failed to load SIGAR. Falling back to JMX implementations.");
            LOG.debug("Reason for SIGAR loading failure", t);

eventually i found out the root reason:

org.hyperic.sigar.SigarException: no in java.library.path

i fixed this by copy into /usr/lib64 by:

cp ./graylog-project-repos/graylog2-server/lib/sigar-1.6.4 /usr/lib64/
chmod 744 /usr/lib64/

but it seems that copy to /usr/lib/jvm/java-1.8.0-openjdk- does not work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.