Skip to main content

uwsgitop is a top-like command that uses the uWSGI Stats Server to monitor your uwsgi application.

To use uWSGI Stat Server simply use the stats option followed by a valid socket address, for example:

uwsgi --module myapp --socket :3030 --stats /tmp/stats.socket

To start monitoring your application with uwsgitop call it with the socket address like so:

uwsgitop /tmp/stats.socket

If you want the stats served over HTTP you will need to add the stats-http option in uWSGI:

uwsgi --module myapp --http :3030 --stats :3031 --stats-http

You’ll now need to call uwsgitop as:

uwsgitop http://127.0.0.1:3031

Installation

pip install uwsgitop

Usage

To display async core statistics (e.g. when using gevent) or to switch between core statistics display mode, press a. To refresh the screen super fast press f, and to quit, press q.

Field

Description

WID

Worker ID

%

Worker usage

PID

Worker PID

REQ

Number of requests the worker executed since last (re)spawn

RPS

Requests per second

EXC

Exceptions

SIG

Managed uwsgi signals

STATUS

Worker is busy or free to use?

AVG

Average request time

RSS

Worker RSS (Resident Set Size, see linux memory management)

VSZ

Worker VSZ (Virtual Memory Size, see linux memory management)

TX

How much data was transmitted by the worker

ReSpwn

Respawn count

HC

Harakiri count

RunT

How long the worker has been running

LastSpwn

Last spawn time

Colors

Lines would be displayed in different colors:

  • default console text color, if the worker is idle

  • green, if the worker is busy

  • magenta, if the worker is in cheap mode

  • yellow, if the worker is handling an uwsgi signal

  • blue, if the worker is suspended

Remember to enable memory-report in your uwsgi configuration to see how much memory resources your uwsgi processes are consuming.

Further Reading

For more info on uWSGI Stats Server see https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html

Release files for uwsgitop 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uwsgitop 0.12
File Size Uploaded
uwsgitop-0.12.tar.gz 6.6 kB Details

Release files / uwsgitop-0.12.tar.gz

Download URL uwsgitop-0.12.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4f9330951f0fb9633226de36cf0c28c04dcf323efab608834aa81f638b6019b2
BLAKE2b-256 checksum
How to use checksums
5f3b02f373bc88978e8f1f33f5afe625ad28def59b6cfbf93424030754dbd5a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.12 This release

1 release file

0.11

1 release file

0.10

1 release file

0.9

1 release file

0.8

1 release file

0.6.2

1 release file

0.6.1

1 release file

0.6

1 release file

0.5

1 release file

0.4.1

1 release file

0.4

1 release file

0.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page