Relative Content

Tag Archive for pythonpython-asynciocpython

AsyncIO CPython hangs with 100% CPU usage

Our Python application is hanging on these 2 particular machines after 10-20 minutes of use. Htop shows 100% CPU usage. I used Pystack to get the stack trace of the running process. The Python side of the stack trace shows nothing interesting, it was just some dictionary look up (and each time it hangs they are at different code). But at the last call Pystack shows that it is stuck at this particular line in CPython source code (the while loop):