${_('Gunicorn process management')}

List of Gunicorn processes on this machine

<% def get_name(proc, cmd): if 'vcsserver.ini' in cmd: return 'VCSServer' elif 'rhodecode.ini' in cmd: return 'RhodeCode' return proc.name() %> % for proc in c.gunicorn_processes: <% mem = proc.memory_info()%> <% children = proc.children(recursive=True) %> <% cmd = ' '.join(proc.cmdline()) %> % if children: <% mem_sum = 0 %> % for proc_child in children: <% mem = proc_child.memory_info()%> % endfor % endif % endfor
${proc.pid} - ${get_name(proc, cmd)} command RSS:${h.format_byte_size_binary(mem.rss)} VMS:${h.format_byte_size_binary(mem.vms)} MASTER
| ${proc_child.pid} - ${proc_child.name()} command CPU: ${proc_child.cpu_percent()} % RSS:${h.format_byte_size_binary(mem.rss)} <% mem_sum += mem.rss %> VMS:${h.format_byte_size_binary(mem.vms)} restart
| total processes: ${len(children)} RSS:${h.format_byte_size_binary(mem_sum)}
--