synchronize sigar invoker
This commit is contained in:
parent
6008f8bb79
commit
e575176056
|
@ -41,7 +41,7 @@ public class SigarProcess implements SigarProcessMBean {
|
||||||
public void close() {
|
public void close() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Long getLongValue(SigarInvokerJMX invoker, String attr) {
|
private synchronized Long getLongValue(SigarInvokerJMX invoker, String attr) {
|
||||||
try {
|
try {
|
||||||
return (Long)invoker.invoke(attr);
|
return (Long)invoker.invoke(attr);
|
||||||
} catch (SigarException e) {
|
} catch (SigarException e) {
|
||||||
|
|
Loading…
Reference in New Issue