{% extends "wagtailadmin/base.html" %} {% load i18n %} {% block titletag %}{% trans "uWSGI Status" %}{% endblock %} {% block bodyclass %}uwsgi{% endblock %} {% block content %} {% if unavailable %} {% trans 'ERROR: uWSGI is not available!' as uwsgi_header %} {% include "wagtailadmin/shared/header.html" with title=uwsgi_header icon="cogs" %} {% else %} {% trans "uWSGI Status" as uwsgi_header %} {% include "wagtailadmin/shared/header.html" with title=uwsgi_header subtitle=version icon="cogs" tabbed="true" merged="true" %}

{% trans 'Information' %}

{% for key, value in stats %} {% endfor %}
{% trans "Option" %} {% trans "Value" %}
{{ key }} {{ value }}

{% trans 'Options' %} (read docs)

{% for key, value in uwsgi.opt.items %} {# uWSGI allows to use options without values if value = true #} {% endfor %}
{% trans "Option" %} {% trans "Value" %}

{{ key }}

{% if value %}{{ value }}{% else %}true{% endif %}

{% trans 'Magic table' %} (read docs)

{% for key, value in uwsgi.magic_table.items %} {% endfor %}
{% trans "Option" %} {% trans "Value" %}

{{ key }}

{{ value }}

{% trans 'Workers' %}

{% if 'memory-report' in uwsgi.opt %} {% endif %} {% for w in workers %} {% if 'memory-report' in uwsgi.opt %} {% endif %} {% endfor %}
{% trans "id" %} {% trans "pid" %} {% trans "status" %} {% trans "requests" %} {% trans "exceptions" %} {% trans "signals" %} {% trans "running time(ms)" %} {% trans "avg response time(ms)" %} {% trans "load" %} {% trans "last spawn" %} {% trans "respawn count" %}{% trans "address space (vsz)" %} {% trans "resident memory (rss)" %}
{{ w.id }} {{ w.pid }} {{ w.status }} {{ w.requests }} {{ w.exceptions }} {{ w.signals }} {{ w.running_time }} {{ w.avg_rt }} {{ w.load|floatformat:2 }} % {{ w.last_spawn }} {{ w.respawn_count }}{{ w.vsz|filesizeformat }} {{ w.rss|filesizeformat }}

{% trans 'Applications' %}

{% for w in uwsgi.workers %} {% for app in w.apps %} {% endfor %} {% endfor %}
{% trans "#" %} {% trans "modifier1" %} {% trans "mountpoint" %} {% trans "interpreter" %} {% trans "callable" %} {% trans "chdir" %} {% trans "requests" %} {% trans "exceptions" %}
{{ app.id }} {{ app.modifier1 }} {{ app.mountpoint }} {{ app.interpreter }} {{ app.callable }} {{ app.chdir }} {{ app.requests }} {{ app.exceptions }}
{% if uwsgi.spooler_jobs %}

{% trans 'Spooler' %}

{% for job in jobs %} {% endfor %}
{% trans "job filename" %} {% trans "environment" %}
{{ job.file }} {{ job.env }}
{% endif %}

{% trans 'Actions' %}

{% csrf_token %}
  • {% trans 'Signal number' %}

{% csrf_token %}
  • {% trans 'Log message' %}

{% endif %} {% endblock %}