Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
cpu spike on terminal resize #1269
I'm not sure if what follows is an issue with gunicorn, Terminator, both, or neither. I run Debian (8), I use Terminator to split up my shells, I run web apps with gunicorn. Pretty straightforward.
While resizing any of the terminals adjacent to that which is running gunicorn, for every movement event tracked, the two lines below are printed and multiple cores of my cpu (i7 4712) are pegged at 100% (or close), until I kill off gunicorn and start it up again.
Clearly this is running in the foreground while debugging things. This behavior is not present if the terminal size remains unchanged. Not a big issue, just an annoyance.
I experience the same reproducable behaviour.
I’m running Django 1.9.6 with Python 3.4.3 and gunicorn 19.5.0 in a virtualenv behind nginx on Ubuntu 14.04 (DigitalOcean).
As soon as I resize my “screen” terminal (by splitting, the