From 55309315901d547a1bc5f06f2e153775aba35e50 Mon Sep 17 00:00:00 2001 From: luav Date: Sat, 7 Jul 2018 01:29:21 +0200 Subject: [PATCH] Estimation of the memory consumption tuned further --- mpepool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpepool.py b/mpepool.py index ab6aaac..6698b84 100755 --- a/mpepool.py +++ b/mpepool.py @@ -1025,7 +1025,7 @@ def _updateMem(self): up = psutil.Process(self.proc.pid) pmem = up.memory_info() # Note: take weighted average of mem and rss to not over/under reserve RAM especially for Java apps - wrss = 0.85 # Weight of the rss: 0.5 .. 0.95 + wrss = 0.9 # Weight of the rss: 0.5 .. 0.98 curmem = pmem.vms * (1 - wrss) + pmem.rss * wrss if self.memkind: amem = curmem # Memory consumption of the whole process tree