Show More
@@ -11,22 +11,31 b'' | |||||
11 | </div> |
|
11 | </div> | |
12 | <div class="panel-body" id="app"> |
|
12 | <div class="panel-body" id="app"> | |
13 | <h3>List of Gunicorn processes on this machine</h3> |
|
13 | <h3>List of Gunicorn processes on this machine</h3> | |
|
14 | <% | |||
|
15 | def get_name(proc, cmd): | |||
|
16 | if 'vcsserver.ini' in cmd: | |||
|
17 | return 'VCSServer' | |||
|
18 | elif 'rhodecode.ini' in cmd: | |||
|
19 | return 'RhodeCode' | |||
|
20 | return proc.name() | |||
|
21 | %> | |||
14 | <table> |
|
22 | <table> | |
15 | % for proc in c.gunicorn_processes: |
|
23 | % for proc in c.gunicorn_processes: | |
16 | <% mem = proc.memory_info()%> |
|
24 | <% mem = proc.memory_info()%> | |
17 | <% children = proc.children(recursive=True) %> |
|
25 | <% children = proc.children(recursive=True) %> | |
|
26 | <% cmd = ' '.join(proc.cmdline()) %> | |||
18 | % if children: |
|
27 | % if children: | |
19 |
|
28 | |||
20 | <tr> |
|
29 | <tr> | |
21 | <td> |
|
30 | <td> | |
22 | <code> |
|
31 | <code> | |
23 |
${proc.pid} - ${proc |
|
32 | ${proc.pid} - ${get_name(proc, cmd)} | |
24 | </code> |
|
33 | </code> | |
25 | </td> |
|
34 | </td> | |
26 | <td> |
|
35 | <td> | |
27 | <a href="#showCommand" onclick="$('#pid'+${proc.pid}).toggle();return false"> command </a> |
|
36 | <a href="#showCommand" onclick="$('#pid'+${proc.pid}).toggle();return false"> command </a> | |
28 | <code id="pid${proc.pid}" style="display: none"> |
|
37 | <code id="pid${proc.pid}" style="display: none"> | |
29 |
${ |
|
38 | ${cmd} | |
30 | </code> |
|
39 | </code> | |
31 | </td> |
|
40 | </td> | |
32 | <td></td> |
|
41 | <td></td> | |
@@ -78,7 +87,7 b'' | |||||
78 | <td><strong>RSS:${h.format_byte_size_binary(mem_sum)}</strong></td> |
|
87 | <td><strong>RSS:${h.format_byte_size_binary(mem_sum)}</strong></td> | |
79 | <td></td> |
|
88 | <td></td> | |
80 | </tr> |
|
89 | </tr> | |
81 | <tr><td> <code> - </code> </td></tr> |
|
90 | <tr><td> <code> -- </code> </td></tr> | |
82 |
|
91 | |||
83 | % endif |
|
92 | % endif | |
84 | % endfor |
|
93 | % endfor |
General Comments 0
You need to be logged in to leave comments.
Login now