uwsgi-docs icon indicating copy to clipboard operation
uwsgi-docs copied to clipboard

UWSGI process taking 200% of CPU!

Open anushreebishnoi opened this issue 7 years ago • 2 comments
trafficstars

Can anyone help us out here? What are we doing wrong? UWSGI takes 200% of CPU usage.

Here is our uwsgi config file:

[uwsgi] socket = /tmp/flask-uwsgi.sock logto = /home/ubuntu/logs/nlp-services.log env = NLTK_DATA=/home/ubuntu/nltk_data/ env = JAVA_HOME=/usr/lib/jvm/java-8-oracle home = /home/ubuntu/miniconda3/envs/nlp_server/bin wsgi-file = /home/ubuntu/repo/nlp-services/wsgi.py callable = server master = true enable-threads = true die-on-term = true processes = 2

cpu status

anushreebishnoi avatar Apr 21 '18 12:04 anushreebishnoi

If you are running some cpu bound nltk code in your python workers high cpu usage shouldn't be a surprise. Still not something you want to do generally.

xrmx avatar Apr 21 '18 15:04 xrmx

whats the best practice in that case then? can you please guide me?

anushreebishnoi avatar Apr 21 '18 15:04 anushreebishnoi