Skip to content

Commit

Permalink
Estimation of the memory consumption tuned further
Browse files Browse the repository at this point in the history
  • Loading branch information
luav committed Jul 6, 2018
1 parent 0862bdd commit 5530931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpepool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5530931

Please sign in to comment.