MySql Proccesslist filled with “Sleep” Entries leading to “Too many Connections”?

后端 未结 6 1405
礼貌的吻别
礼貌的吻别 2020-12-12 12:41

I\'d like to ask your help on a longstanding issue with php/mysql connections.

Every time I execute a \"SHOW PROCESSLIST\" command it shows me about 400 idle (Status

6条回答
  •  有刺的猬
    2020-12-12 13:22

    Alright so after trying every solution out there to solve this exact issues on a wordpress blog, I might have done something either really stupid or genius... With no idea why there's an increase in Mysql connections, I used the php script below in my header to kill all sleeping processes..

    So every visitor to my site helps in killing the sleeping processes..

    
    

提交回复
热议问题