# HG changeset patch # User Marcin Kuzminski # Date 2017-07-10 19:15:35 # Node ID 7a83865c32a35dcd49420d1c8e39148977a58726 # Parent 7da9bb637748e4974fe161828d1716d6ad70150c process-management: show sum of RSS memory for whole process tree. diff --git a/rhodecode/templates/admin/settings/settings_process_management.mako b/rhodecode/templates/admin/settings/settings_process_management.mako --- a/rhodecode/templates/admin/settings/settings_process_management.mako +++ b/rhodecode/templates/admin/settings/settings_process_management.mako @@ -37,9 +37,10 @@ VMS:${h.format_byte_size_binary(mem.vms)} - MASTER [children: ${len(children)}] + MASTER + <% mem_sum = 0 %> % for proc_child in children: <% mem = proc_child.memory_info()%> @@ -59,6 +60,7 @@ RSS:${h.format_byte_size_binary(mem.rss)} + <% mem_sum += mem.rss %> VMS:${h.format_byte_size_binary(mem.vms)} @@ -70,6 +72,13 @@ % endfor + + | total processes: ${len(children)} + + RSS:${h.format_byte_size_binary(mem_sum)} + + + - % endif % endfor