uwsgi 教程 - uwsgitop
启用uWSGI状态服务
只需要简单的在uwsgi的运行参数里加上:--stats /tmp/stats.socket
uwsgi --socket :3031 --module welcome --master --processes 8 --stats /tmp/stats.socket
安装uwsgitop
uwsgitop是其他top类似,使用状态服务来获取服务数据。在PyPI上有uwsgitop,所以可以通过pip或者easy_install安装。
pip install uwsgitop
使用uwsgitop
运营uwsgitop即可,参数为状态服务的地址,本教程里,我们使用的是/tmp/stats.socket。
uwsgitop /tmp/stats.socket
如下是uwsgitop的一个样例输出。