##// 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 <table>
14 <table>
15 % for proc in c.gunicorn_processes:
15 % for proc in c.gunicorn_processes:
16 <% mem = proc.memory_info()%>
16 <% mem = proc.memory_info()%>
17 <% children = proc.children(recursive=True) %>
18 % if children:
17
19
18 <tr>
20 <tr>
19 <td>
21 <td>
@@ -34,16 +36,38 b''
34 VMS:${h.format_byte_size_binary(mem.vms)}
36 VMS:${h.format_byte_size_binary(mem.vms)}
35 </td>
37 </td>
36 <td>
38 <td>
37 <% is_master = proc.children(recursive=True) %>
39 MASTER [children: ${len(children)}]
38 % if is_master:
40 </td>
39 MASTER
41 </tr>
40 % else:
42 % for proc_child in children:
41 <a href="#restartProcess" onclick="restart(this, ${proc.pid});return false">
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 restart
64 restart
43 </a>
65 </a>
44 % endif
66 </td>
45 </td>
67 </tr>
46 </tr>
68 % endfor
69
70 % endif
47 % endfor
71 % endfor
48 </table>
72 </table>
49 </div>
73 </div>
General Comments 0
You need to be logged in to leave comments. Login now