MySQL not closing

For the second time now, my host has suspended me because my site “isn’t closing MySQL sockets” and thus, fills them all up and crashes the server. I’ve had this problem with both mysql_connect and mysql_pconnect, both with and without explicitly closing the connection at the end of the script. I’ve got a fairly busy site, but I strongly doubt it’s enough to use up the default 100 connections simultaneously. Anyone run into this before or know what I might be doing wrong? I would really appreciate any sort of point in the right direction I could get.

Thanks.

Sponsor our Newsletter | Privacy Policy | Terms of Service