Commit 4f34be3e authored by Gabriel Monnerat's avatar Gabriel Monnerat

ignore virtual memory(VMS), use memory usage of process(RSS) only

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44078 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 357a7284
......@@ -52,7 +52,7 @@ class MonitorMemory(Monitor, Process):
if not hasattr(self, 'process') or \
self.process.pid != int(self.openoffice.pid()):
self.create_process()
return sum(self.process.get_memory_info()) / (1024 * 1024)
return self.process.get_memory_info().rss / (1024 * 1024)
except TypeError:
logger.debug("OpenOffice is stopped")
return 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment