<% def get_name(proc): if 'vcsserver.ini' in proc.cmd: return 'VCSServer' elif 'rhodecode.ini' in proc.cmd: return 'RhodeCode' return proc.name %> % for proc in c.gunicorn_processes: % if proc.children: <% mem_sum = 0 %> % for proc_child in proc.children: % if proc_child: % endif % endfor % endif % endfor
${h.format_date(h.datetime.now())}
${proc.pid} - ${get_name(proc)} command RSS:${h.format_byte_size_binary(proc.mem_rss)} VMS:${h.format_byte_size_binary(proc.mem_vms)} AGE: ${h.age_component(h.time_to_utcdatetime(proc.create_time))} MASTER % if request.GET.get('dev'): | ADD | REMOVE % endif
| ${proc_child.pid} - ${get_name(proc_child)} command CPU: ${proc_child.cpu_percent} % RSS:${h.format_byte_size_binary(proc_child.mem_rss)} <% mem_sum += proc_child.mem_rss %> VMS:${h.format_byte_size_binary(proc_child.mem_vms)} AGE: ${h.age_component(h.time_to_utcdatetime(proc_child.create_time))} restart
| total processes: ${len(proc.children)} RSS:${h.format_byte_size_binary(mem_sum)}
--