% for proc in c.gunicorn_processes:
<% mem = proc.memory_info()%>
<% children = proc.children(recursive=True) %>
% if children:
${proc.pid} - ${proc.name()}
|
command
${' '.join(proc.cmdline())}
|
|
RSS:${h.format_byte_size_binary(mem.rss)}
|
VMS:${h.format_byte_size_binary(mem.vms)}
|
MASTER [children: ${len(children)}]
|
% for proc_child in children:
<% mem = proc_child.memory_info()%>
| ${proc_child.pid} - ${proc_child.name()}
|
command
${' '.join(proc_child.cmdline())}
|
CPU: ${proc_child.cpu_percent()} %
|
RSS:${h.format_byte_size_binary(mem.rss)}
|
VMS:${h.format_byte_size_binary(mem.vms)}
|
restart
|
% endfor
% endif
% endfor