Continuing the discussion from Failed to load SIGAR:
also i noted that there should also a LOG.debug just after the LOG.info to tell the reason why failed to load SIGAR. but i have not got this in IntelliJ IDEA, why ?:
@Inject
public SigarService() {
Sigar sigar = null;
try {
sigar = new Sigar();
Sigar.load();
LOG.debug("Successfully loaded SIGAR {}", Sigar.VERSION_STRING);
} catch (Throwable t) {
LOG.info("Failed to load SIGAR. Falling back to JMX implementations.");
LOG.debug("Reason for SIGAR loading failure", t);
...