<%
def get_name(proc):
if 'vcsserver.ini' in proc.cmd:
return 'VCSServer'
elif 'rhodecode.ini' in proc.cmd:
return 'RhodeCode'
return proc.name
%>
${h.format_date(h.datetime.now())}
|
% for proc in c.gunicorn_processes:
% if proc.children:
${proc.pid} - ${get_name(proc)}
|
command
${proc.cmd}
|
|
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
|
<% mem_sum = 0 %>
% for proc_child in proc.children:
% if proc_child:
| ${proc_child.pid} - ${get_name(proc_child)}
|
command
${proc_child.cmd}
|
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
|
% endif
% endfor
| total processes: ${len(proc.children)} |
|
RSS:${h.format_byte_size_binary(mem_sum)} |
|
-- |
% endif
% endfor