##// END OF EJS Templates
git: use force branch checkout to prevent cases when .gitattributes modifies...
git: use force branch checkout to prevent cases when .gitattributes modifies files by specific rule and then checkout is blocked by potential file conflicts.

File last commit:

r2500:f1478d29 default
r2502:9f2d0b54 default
Show More
settings_process_management_data.mako
93 lines | 3.0 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / settings / settings_process_management_data.mako
process-management: enable auto-refresh to track usage live.
r2500
<table id="procList">
<%
def get_name(proc):
cmd = ' '.join(proc.cmdline())
if 'vcsserver.ini' in cmd:
return 'VCSServer'
elif 'rhodecode.ini' in cmd:
return 'RhodeCode'
return proc.name()
%>
<tr>
<td colspan="8">
<span id="processTimeStamp">${h.format_date(h.datetime.now())}</span>
</td>
</tr>
% for proc in c.gunicorn_processes:
<% mem = proc.memory_info()%>
<% children = proc.children(recursive=True) %>
% if children:
<tr>
<td>
<code>
${proc.pid} - ${get_name(proc)}
</code>
</td>
<td>
<a href="#showCommand" onclick="$('#pid'+${proc.pid}).toggle();return false"> command </a>
<code id="pid${proc.pid}" style="display: none">
${' '.join(proc.cmdline())}
</code>
</td>
<td></td>
<td>
RSS:${h.format_byte_size_binary(mem.rss)}
</td>
<td>
VMS:${h.format_byte_size_binary(mem.vms)}
</td>
<td>
AGE: ${h.age_component(h.time_to_utcdatetime(proc.create_time()))}
</td>
<td>
MASTER
</td>
</tr>
<% mem_sum = 0 %>
% for proc_child in children:
<% mem = proc_child.memory_info()%>
<tr>
<td>
<code>
| ${proc_child.pid} - ${get_name(proc_child)}
</code>
</td>
<td>
<a href="#showCommand" onclick="$('#pid'+${proc_child.pid}).toggle();return false"> command </a>
<code id="pid${proc_child.pid}" style="display: none">
${' '.join(proc_child.cmdline())}
</code>
</td>
<td>
CPU: ${proc_child.cpu_percent()} %
</td>
<td>
RSS:${h.format_byte_size_binary(mem.rss)}
<% mem_sum += mem.rss %>
</td>
<td>
VMS:${h.format_byte_size_binary(mem.vms)}
</td>
<td>
AGE: ${h.age_component(h.time_to_utcdatetime(proc_child.create_time()))}
</td>
<td>
<a href="#restartProcess" onclick="restart(this, ${proc_child.pid});return false">
restart
</a>
</td>
</tr>
% endfor
<tr>
<td colspan="2"><code>| total processes: ${len(children)}</code></td>
<td></td>
<td><strong>RSS:${h.format_byte_size_binary(mem_sum)}</strong></td>
<td></td>
</tr>
<tr><td> <code> -- </code> </td></tr>
% endif
% endfor
</table>