Skip to main content


Project description


Log and show ram usage of a zope instance per request.

By calling @@requestlet, you’ll get a nice graph and (if you mark something in it) a table with ram usage, difference to the last request and the URI over time.

This product was created in the hope to see patterns on which requests how much ram is “lost”. It was inspired by and uses the graph-code from there.

The logging was taken from seletz’ requestlet code and was extended by the ram usage.

Installation / Usage

Add this to your buildout.cfg

[buildout] eggs = z3c.requestlet

[instance] zcml = z3c.requestlet

Then install the product using plone’s portal_quickinstaller. If the product is not installed, it will not log and it won’t provide the @@requestlet view.

After installation you may call


The default logfile is /tmp/requestlet.txt and may be set using an environment variable called “REQUESTLET_LOGNAME”.

You may also log only hits that take more than a specific time to render using an environment variable called “MIN_LOG_TIME”.

The logfile will provide detailled page generation information like this:

2009-07-01 16:21:39,755 requestlet INFO ELAPSED 0.038s (min 0s) METHOD GET RAM 423124kB URL: localhost:10054/site/ rinfo: last-modified=’Wed, 01 Jul 2009 12:51:28 GMT’ content-length=’169’ content-type=’text/css; charset=utf-8’ cache-control=’public,max-age=86400’

This provides:

  • time to render the page in plone (ELAPSED)
  • request method (METHOD)
  • total vmsize of the zope process (RAM)
  • the called URL (URL)
  • the request info (rinfo)


This product will only work with systems, where you can get the memory-info from /proc/<pid>/status. This is linux.


To contribute, feel free to send patches as we don’t have this in a public svn currently. It’s managed with bzr ;)



0.9.1 - Bugfix [20090706] [Daniel Kraft]

  • log as debug, not as info

0.9 - Initial useful release [20090701] [Daniel Kraft, Stefan Eletzhofer]

  • view ram usage per request

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 z3c.requestlet, version 0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size z3c.requestlet-0.9.1.tar.gz (61.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page