Skip to content

Commit 5530931

Browse files
committed
Estimation of the memory consumption tuned further
1 parent 0862bdd commit 5530931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mpepool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ def _updateMem(self):
10251025
up = psutil.Process(self.proc.pid)
10261026
pmem = up.memory_info()
10271027
# Note: take weighted average of mem and rss to not over/under reserve RAM especially for Java apps
1028-
wrss = 0.85 # Weight of the rss: 0.5 .. 0.95
1028+
wrss = 0.9 # Weight of the rss: 0.5 .. 0.98
10291029
curmem = pmem.vms * (1 - wrss) + pmem.rss * wrss
10301030
if self.memkind:
10311031
amem = curmem # Memory consumption of the whole process tree

0 commit comments

Comments
 (0)