% 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
|
<% mem_sum = 0 %>
% 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)}
<% mem_sum += mem.rss %>
|
VMS:${h.format_byte_size_binary(mem.vms)}
|
restart
|
% endfor
| total processes: ${len(children)} |
|
RSS:${h.format_byte_size_binary(mem_sum)} |
|
- |
% endif
% endfor