Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php script does not closes all mysql connections

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
People, please help me! I wrote CJ script on php with mysql. I use mysql_connect for open mysql connection and mysql_close to close connection. When my traffic becomes more then 5k php script does not close all the mysql connections. I use mysqladmin processlist command to check it out. Neither I nor my host staff do not know what to do.
According to php manual: "Using mysql_close() isn’t usually necessary, as non-persistent open links are automatically closed at the end of the script’s
execution." This means that mysql connection should be closed anyway. Please help me to found out why many mysqlconnections stay alive when the traffic is increases.

It is the dead-end for me.

Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top