From e4532b9a5015d9ca1b56397756b8a89dc1c0af89 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sat, 24 Sep 2011 09:07:34 +0200 Subject: [PATCH] added memory usage in uwsgicc --- uwsgicc/templates/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uwsgicc/templates/index.html b/uwsgicc/templates/index.html index cb68a780..8301586a 100644 --- a/uwsgicc/templates/index.html +++ b/uwsgicc/templates/index.html @@ -272,6 +272,10 @@ $(document).ready(function() { exceptions running time avg response time +{% if 'memory-report' in uwsgi.opt %} + rss + vsz +{% endif %} # respawn {% for w in uwsgi.workers() %} @@ -282,6 +286,10 @@ $(document).ready(function() { {{w.exceptions}} {{w.running_time/1000}} {{w.avg_rt/1000}} +{% if 'memory-report' in uwsgi.opt %} + {{(w.rss/1000/1000)|round(2,'floor')}}MB + {{(w.vsz/1000/1000)|round(2,'floor')}}MB +{% endif %} {{w.respawn_count}} {% endfor %}