For reference here is my uwsgi.ini
[uwsgi] print = Starting uWSGI for example log-maxsize = 10000000 buffer-size = 65535 # master master = true uid = example gid = example # maximum number of processes processes = 5 # the socket (use the full path to be safe) protocol = uwsgi socket = 127.0.0.1:9090 # the base directory chdir = /home/example/example_project # Django's wsgi file (the file location is example/wsgi.py) module = example.wsgi # the virtualenv home = /home/example/python # clear environment on exit vacuum = true env = PATH=/home/example/bin:/home/example/python/bin:/usr/local/bin:/usr/bin:/bin daemonize = /home/example/example_project/logs/uwsgi.log pidfile = /home/example/uwsgi.pid # Debugging memory-report 2013/12/17 Jeff Tchang <[email protected]> > > Looking for some ideas as to why my Django 1.4.2, nginx + uwsgi is slowing > down on some requests for the same exact page. > > I am hitting the page over and over with apache bench with concurrency 1. > What I am seeing is every couple of requests I see a spike in how long it > takes. I have enabled memory-profiler in uwsgi and I am greping it for the > time and how long it took: > > tail -f uwsgi.log | grep -oh "bytes in .* msecs " > > bytes in 500 msecs > bytes in 5542 msecs > bytes in 487 msecs > bytes in 416 msecs > bytes in 474 msecs > bytes in 368 msecs > bytes in 437 msecs > bytes in 416 msecs > bytes in 409 msecs > bytes in 445 msecs > bytes in 417 msecs > bytes in 465 msecs > bytes in 386 msecs > bytes in 460 msecs > bytes in 400 msecs > bytes in 390 msecs > bytes in 478 msecs > bytes in 437 msecs > bytes in 5489 msecs > bytes in 5608 msecs > bytes in 394 msecs > bytes in 5436 msecs > bytes in 458 msecs > bytes in 424 msecs > bytes in 368 msecs > bytes in 400 msecs > bytes in 5395 msecs > bytes in 397 msecs > bytes in 5 msecs > bytes in 383 msecs > bytes in 69 msecs > bytes in 397 msecs > bytes in 338 msecs > bytes in 372 msecs > bytes in 368 msecs > bytes in 379 msecs > bytes in 368 msecs > bytes in 443 msecs > bytes in 388 msecs > bytes in 435 msecs > bytes in 5449 msecs > bytes in 500 msecs > bytes in 383 msecs > bytes in 410 msecs > bytes in 397 msecs > bytes in 408 msecs > bytes in 425 msecs > bytes in 407 msecs > bytes in 10762 msecs > > > Every few requests I get a spike of 5-10s which I find really odd. Django > profiler is indicating that the time to process the request is about 2 secs > and when I run it on slow requests it doesn't show anything out of the > ordinary. It seems like uwsgi is actually taking the time and not the wsgi > application. > > Running against another page shows consistent times. > > > Setup: > > app server on linode 2GB RAM > uwsgi --version: 1.9.21.1 > >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
