我没有使用 uwsgitop 和套接字获取 uwsgi 统计信息。我已经将 uwsgi 配置为带有套接字的统计信息,当我尝试使用以下命令获取统计信息时:
uwsgitop /var/www/uwsgi/proj.socket
它抛出错误
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我正在使用uwsgi 版本 2.0.17.1。
这是我的 uwsgi ini 文件
[uwsgi]
# Multi Thread Support
enable-threads = true
# Django-related settings
# the base directory (full path)
chdir = /home/user/base-dir/proj-path/
# Django's wsgi file
module = proj.wsgi
# the virtualenv (full path)
home = /home/user/base-path/
# process-related settings
# master
master = true
# maximum number of worker processes
processes = 10
socket = /var/www/uwsgi/proj.socket
# ... with appropriate permissions - may be needed
chmod-socket = 666
# clear environment on exit
vacuum = true
daemonize = /var/www/uwsgi/uwsgi.log
pidfile = /var/www/uwsgi/uwsgi_hub.pid
logto = /var/log/proj_uwsgi%n.log
uid = user
gid = user
http-auto-gzip = true
memory-report = True
py-tracebacker=/var/www/uwsgi/proj.socket
--stats /var/www/uwsgi/proj.socket