diff --git a/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java b/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java index 174ca364..82e3315e 100644 --- a/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java +++ b/bindings/java/src/net/hyperic/sigar/jmx/SigarProcess.java @@ -41,7 +41,7 @@ public class SigarProcess implements SigarProcessMBean { public void close() { } - private Long getLongValue(SigarInvokerJMX invoker, String attr) { + private synchronized Long getLongValue(SigarInvokerJMX invoker, String attr) { try { return (Long)invoker.invoke(attr); } catch (SigarException e) {