Sometimes MySQL connection threads are not thrown, even if you have completely disassembled the socket; he is still hanging around, waiting for him to reap.
Check the wait_timeout settings. The default value is unreasonably long. The optimal value may be about 20 seconds. You probably also want this to be low if you use persistent connections.
source share