uwsgitop | top-like app for monitoring uWSGI instances
kandi X-RAY | uwsgitop Summary
kandi X-RAY | uwsgitop Summary
top-like app for monitoring uWSGI instances
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of uwsgitop
uwsgitop Key Features
uwsgitop Examples and Code Snippets
Community Discussions
Trending Discussions on uwsgitop
QUESTION
I'm running uwsgi with a 3 processes configuration. While monitoring it to see some problems with requests timeouts on a high traffic website (100 requests/second) I saw the following.
It seems that one of the processes is being locked into 531 (540 on another server) status and not serving any requests. Also EXC column stays between 11 and 15.
What is 531 status? I can't find any reference in uwsgitop documentation. It should only be one of idle, busy, pause, cheaped or sig
I need to say that uwsgi runs under supervisor.
...ANSWER
Answered 2019-Nov-30 at 06:35Those numbers 531 and 540 do not really belong to the STATUS column, but to the SIG column. The real status was idle, which is the following value that's mistakenly being displayed under the AVG column.
It's just a display bug: seems a wide value under the REQ column has overflowed the column and pushed every subsequent value in that row 1 more position over to the right.
QUESTION
- OS: Linux (4.15.0-1043-aws) / Ubuntu 18.04.1 LTS 64 bit
- Python: 3.6.5 (default, Apr 1 2018, 05:46:30)
- uwsgi: 2.0.17.1
- App server: Django 2.1.1
- Web server: nginx/1.14.0 (Ubuntu)
I use nginx + uwsgi + django
to setup web server, and some times I found the response is so slowly and I have to use the touch command
which uwsgi
provided to reload the sever.
After using uwsgitop
to monitor my uwsgi
server, I found that some uwsgi workers
keep idle after being respawned, and these workers' RSS
and VSZ
are zero, as the following image shows.
I didn't find any error info in uwsgi
log, the spawning info is normal like this:
ANSWER
Answered 2019-Sep-18 at 03:18Just as my comments on uwsgi issue
Some worker keep idle after respawning shows, this problem caused by third-party module APScheduler
.
I use strace
and gdb
tools to inspect the idle worker, and find the idle worker just stuck in Waiting for the GIL
.
So I think this should be caused by threads I created in master process. And the only threads I introduced in master process is APScheduler background instance
which used to start cron job.
After I move the scheduler jobs logic to a separated process, this problem never happen again.
QUESTION
my jenkins CI has started to fail. I'm building a module that depends on another module of mine
here is the error message. it's not failing on localhost. The build is done using dockers
...ANSWER
Answered 2018-Nov-25 at 18:43The root cause was upgrading PyOpenSSL
from 17.3.0
to 18.0
. reverted that and was solved.
QUESTION
I'm using uwsgi version 2.0.13.1 with the following config:
...ANSWER
Answered 2018-Jan-10 at 16:01Although I added already a comment, here goes a longer description.
Warning: the problem only arose when using more than one worker process AND more than one thread (-p --threads).
Short version: In Python 2.7.x some modules are not 100% thread safe during imports (logging, implicit imports of codecs). Try to import all of such problematic modules in the wsgi file given to uwsgi (i.e, before uwsgi forks).
Long version: In https://github.com/unbit/uwsgi/issues/1599 I analysed the problem and found that it could be related to python bug with the logging module. The problem can be solved importing and initializing any critical modules BEFORE uwsgi forks which happens after the wsgi script given to uwsgi is executed.
I finally resolved my problem importing the django settings.ROOT_URLCONF directly or indirectly from the wsgi file. This also has the benefits of reducing memory consumption (because the code base shared between workers is much bigger) and per-worker initialization time.
QUESTION
Running uWSGI with
...ANSWER
Answered 2017-Jun-11 at 00:39This happened because uWSGI workers were unable to access the thread pool created in the master, see https://stackoverflow.com/a/39890941/2419669.
Using @postfork fixes this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install uwsgitop
You can use uwsgitop like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page