##// END OF EJS Templates
process-management: structure the process by master.
marcink -
r1887:3d0bb01d default
parent child Browse files
Show More
@@ -14,6 +14,8 b''
14 14 <table>
15 15 % for proc in c.gunicorn_processes:
16 16 <% mem = proc.memory_info()%>
17 <% children = proc.children(recursive=True) %>
18 % if children:
17 19
18 20 <tr>
19 21 <td>
@@ -34,17 +36,39 b''
34 36 VMS:${h.format_byte_size_binary(mem.vms)}
35 37 </td>
36 38 <td>
37 <% is_master = proc.children(recursive=True) %>
38 % if is_master:
39 MASTER
40 % else:
41 <a href="#restartProcess" onclick="restart(this, ${proc.pid});return false">
39 MASTER [children: ${len(children)}]
40 </td>
41 </tr>
42 % for proc_child in children:
43 <% mem = proc_child.memory_info()%>
44 <tr>
45 <td>
46 <code>
47 | ${proc_child.pid} - ${proc_child.name()}
48 </code>
49 </td>
50 <td>
51 <a href="#showCommand" onclick="$('#pid'+${proc_child.pid}).toggle();return false"> command </a>
52 <code id="pid${proc_child.pid}" style="display: none">
53 ${''.join(proc_child.cmdline())}
54 </code>
55 </td>
56 <td>
57 RSS:${h.format_byte_size_binary(mem.rss)}
58 </td>
59 <td>
60 VMS:${h.format_byte_size_binary(mem.vms)}
61 </td>
62 <td>
63 <a href="#restartProcess" onclick="restart(this, ${proc_child.pid});return false">
42 64 restart
43 65 </a>
44 % endif
45 66 </td>
46 67 </tr>
47 68 % endfor
69
70 % endif
71 % endfor
48 72 </table>
49 73 </div>
50 74 </div>
General Comments 0
You need to be logged in to leave comments. Login now