Package: rt.zps
zps - A zope processes inspectorzpsis addressed to the manager of zope and plone sites that want to get quickly
get informations about the running instances of zope.Installationeasy_install psutil
easy_install rt.zpsThanks to@der_sven_you can find up to datedebian packageshere:http://www.apt.leftxs.org/Usagezpsbasic usage is straightforward:[user@localhost]$zps
CWD:      /home/user/plone1
User:     user
PID:      1234
Conf:     /home/user/plone1/parts/instance/etc/zope.conf
Address:  8081
Memory:   1.96%

CWD:      /home/user/plone2
User:     user
PID:      12345
Conf:     /home/user/plone2/parts/instance/etc/zope.conf
Address:  8082
Memory:   1.96%The default action is to report, for each running instance of zope that it founds:the Current Working Directory (CWD)the id of the user who is running the processthe process PIDthe zope configuration file used by the instancethe port (as calculated parsing the configuration file)the memory usageTo obtain usage information forzpsjust type zps –help, you will get this:[user@localhost]$zps
zps - report a snapshot of the current zope processes.

USAGE:
zps
zps --help
zps --pid 1111
zps --port 8080
zps --grep ploneAs you can seezpscan filter the results perzpsor port, e.g., if callingzpsreturns the report about the two instances above, you will have the following:[user@localhost]$zps --pid 1234
CWD:      /home/user/plone1
User:     user
PID:      1234
Conf:     /home/user/plone1/parts/instance/etc/zope.conf
Address:  8081
Memory:   1.96%

[user@localhost]$zps --port 8082
CWD:      /home/user/plone2
User:     user
PID:      12345
Conf:     /home/user/plone2/parts/instance/etc/zope.conf
Address:  8082
Memory:   1.96%In the case no instance is found, you will have:[user@localhost]$zps
No running zope instance foundTODO: filter output information
It may happen that your server starts to be crowded. In that case the output ofzpsis quickly parsable.
Two command line flags should then be introduced:–show–hideTODO: colorize output
It would be a nice feature to highlight with colors the memory usage.
If the output is in the range:0%-5%: green0%-10%: yellow10%-20%: red20%-100%: blinking redExamples[user@localhost]$zps --hide CWD,User,Memory
PID:      1234
Conf:     /home/user/plone1/parts/instance/etc/zope.conf
Address:  8081

PID:      12345
Conf:     /home/user/plone2/parts/instance/etc/zope.conf
Address:  8082

[user@localhost]$zps --hide CWD,User,Memory
CWD:      /home/user/plone1
User:     user
Memory:   1.96%

CWD:      /home/user/plone2
User:     user
Memory:   1.96%Changelog0.9.6 (2014-03-20)psutils 2 compatibility [alert]0.9.5 (2014-02-14)Python3 compatibility [alert]0.9.4 (2012-10-29)fixing a crash when zope.conf file is not found [alert]handling help flags, fixes #1, fixes #2 [alert]cosmetic fixes [alert]0.9.3 (2012/02/10)moved to github [ale-rt]heavy refactoring [ale-rt]added –grep flag [ale-rt]fix address calculations [ale-rt]sorting process list [ale-rt]tests [ale-rt]0.9.2 (2010/06/10)Fixed documentation [keul]Fixed computing addresses in the form of ip:port [alert]0.9.1 (2010/06/10)Fixed egg structure [fdelia]pid option [alert, fdelia]port option [alert, fdelia]Refactoring [alert]Documentation [alert]0.9.0 (2010/05/05)Initial release [alert]