private static synchronized MemoryStats physical() throws ApplicationException { if (jsm == null) jsm = new JavaSysMon(); MemoryStats p = jsm.physical(); if (p == null) throw new ApplicationException("Memory information are not available for this OS"); return p; }