Skip to main content

This package manipulates the process title to show the urls your threads are currently serving.

It is quite simplistic, it does not show you for how long it is working on the request and it will not show idle threads as idle.

This gives you information when running ps or top, these tools show the up to date process name.

See it in action:

$ ps auxwwww | grep zope | grep -v grep
do3cc           48824  83.5  1.0  2634876 159628 s004  R+   12:17AM   0:14.15 yo zope /Plone/less-variables.js /Plone/less-variables.js /Plone/less-variables.js /Plone/less-variables.js /Plone/less-variables.js

I used the a configuration option to shorten the long zope name to yo zope. This makes it a bit more readable.

You see 5 times the request for the Resource /Plone/less-variables.js, A resource a chose by random and hammered my Zope instance with ab. Interesting Tidbit: This is a standard Plone instance, it runs with 4 threads but you see 5 requests here. This happens because we log Requests when they get received from the main thread, that does not count as one of the four zserver-threads. Think of it as the queue.

Features

  • shows url in the process name.

  • Make process name overall shorter.

Documentation

This is the full documentation

Installation

Install collective.arg0spy by adding it to your buildout:

[buildout]

 ...

 eggs =
     collective.argv0spy
 zcml =
     collective.argv0spy

and then running “bin/buildout” You do not need to activate your plugin. The plugin will be active for all Plone instances of your zope process.

Nothing gets installed in the Database, so removing the pcakge from your buildout and rerunning buildout will remove this package without leaving a trace.

Configuration

The full zope process name is quite long. When starting with an environment variable ZOPE_SHORT_NAME, the value of this variable becomes the new zope name, after the first request has been received.

For example, I ran my zope instance like that to produce the output from above:

$ ZOPE_SHORT_NAME="yo zope" ./bin/instance fg

Contribute

License

This package is MIT licensed

Changelog

0.1.3 (2016-05-04)

  • Remove embarrassing yo zope from package.

0.1.2 (2016-05-03)

  • Fix another unfound issue in egg/wheel.

0.1.1 (2016-05-02)

  • Fix broken egg.

0.1.0 (2016-04-30)

  • Add posibility to define an overall shorter name for the zope process.

0.0.1 (2016-04-30)

  • Initial release.

Release files for collective.argv0spy 0.1.3

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

Source distribution (sdist)

Source distribution for collective.argv0spy 0.1.3
File Size Uploaded
collective.argv0spy-0.1.3.tar.gz 4.2 kB Details

Release files / collective.argv0spy-0.1.3.tar.gz

Download URL collective.argv0spy-0.1.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5e47ad4a987efe2f71b5d942c02372057039f1d899befe7468cd34046239e547
BLAKE2b-256 checksum
How to use checksums
c5128b76173caff846449fffa0974ec06b1ab2e96fdd996e5b1356a3c2158644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.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