Skip to main content

django-processinfo is a Django application to collect information about the running server processes.

Project description

A reuseable Django application for collecing information about the running server processes. We try to cause as little additional overhead: django-processinfo creates most of the time only one database query to update the data.

The most important data that django-processinfo will be captured:

  • Process statistics:

    • process PID, start time, life times
    • Number of average/max living processes
    • min/average/max response times
    • Total request/exceptions count
  • Memory statistics:

    • min/average/max memory usage (VmRSS, VmPeak)
  • System informations:

    • System memory usage
    • Swap usage
    • load average

django-processinfo splits some of these data per SITE_ID, so you can see e.g. which site is mostly used.

What is it not:

more info: (de)


This only works, if /proc/$$/status exists. So only on unix/linux like platforms, yet.


Add unittests


Here some screenshots (from v0.2 - 19.08.2011) how it looks like:

Screenshot 1

Screenshot 2


  1. install it e.g.:
pip install django-processinfo
  1. add settings (see below)
  2. create tables (run syncdb)


add this to your

import os

import django_processinfo



# Put templates above admin contrib, e.g.:
    os.path.join(os.path.abspath(os.path.dirname(django_processinfo.__file__)), "templates/"),

# include app settings from ./django_processinfo/
from django_processinfo import app_settings as PROCESSINFO

# Change settings like this:


The ProcessInfoMiddleware can actually be inserted anywhere. However, it should be added far above. Thus, to capture everything.

For performance enhancement, you can put ProcessInfoMiddleware after LocalSyncCacheMiddleware. But then, however, lacks statistical values on every cache hit!

app settings

Available django-processinfo settings can you found in ./django_processinfo/

Django compatibility

Version Python Django
v0.9.0 python 3 django v2.2 LTS
v0.8.0 python 3 django v1.11 LTS
v0.7.0 python 2 django v1.5
v0.6.1 python 2 django v1.4


  • dev - compare v0.9.0…master

    • TBC
  • v0.9.0 - 26.02.2020 - compare v0.8.0…v0.9.0

    • Updates for Django 2.2
  • v0.8.0 - 09.03.2018 - compare v0.7.1…v0.8.0

    • Updates for Python v3 and Django 1.11
  • v0.7.1 - 20.08.2015 - compare v0.6.3…v0.7.1

    • Changes for django 1.5 support
    • change setup install_requires to Django v1.3.x - v1.5.x
    • Bugfix in templates: missed i18n
  • v0.6.3 - 24.08.2012

    • remove auto commit date from version
  • v0.6.2

    • Auto cleanup ProcessInfo table to protect against overloading.
    • Don’t insert django-processinfo “time cost” info if response.status_code is not 200
  • v0.6.1

    • Tested also with django v1.4
    • change setup install_requires to Django v1.3.x - v1.4.x
  • v0.6.0

    • Add “Reset all data” in object tools.
    • Make “Remove dead PIDs” and “Reset all data” available on both admin pages.
  • v0.5.2

  • v0.5.1

    • Add “Remove dead PIDs” as admin view in “Process statistics” object tools (top, right, grey links)
  • v0.5.0

    • Model changes: Please recreate tables, e.g.: ./ reset django_processinfo
    • New: Display some static system informations (uname, domain name, ip adress, python version, sys.prefix)
    • New: current living processes (also per site)
    • display sum of user/system mode time
  • v0.4.1

  • v0.4

    • Bugfix with “Total created processes”
    • Display “Process lifetime”
  • v0.3.0

    • Display some system information from /proc/meminfo and ‘load average’
    • Many Bugfixes
  • v0.2.0

    • Many things changes! Recreate tables, e.g: ./ reset django_processinfo
  • v0.1.0

    • first Version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-processinfo, version 0.9.0
Filename, size File type Python version Upload date Hashes
Filename, size django_processinfo-0.9.0-py3.6.egg (23.7 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size django_processinfo-0.9.0-py3-none-any.whl (25.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-processinfo-0.9.0.tar.gz (22.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page