search

Home  >  Q&A  >  body text

django - Nginx uwsgi process problem

Need advice: Use nginx uwsgi to build the Django operating environment. Uwsgi is set to create 4 processes, but why is it always in the same process after the program is running, and the other 3 processes are idle? This will cause the service to start. The longer it runs, the slower it gets.
Environment description:
centOS 6.5, nginx 1.4.7, uwsgi 1.4.2, Python 2.7, Django 1.7
The configuration of nginx is as follows:

uwsgi is configured in XML form, the configuration is as follows:


As shown in the figure, when looking at the process, I find that no matter how I access the service, I always access this process. Why is this? Ask the experts to clarify my doubts! ! !

为情所困为情所困2752 days ago505

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:25:56

    Refer to the configuration items in /usr/share/uwsgi/conf/default.ini

    It is recommended to put your configuration under /etc/uwsgi/sites-enabled/ and use service uwsgi (start|stop|restart|reload) to control your django process

    reply
    0
  • Cancelreply