PDA

View Full Version : count mysql connections?



biggles1979
02-08-2007, 05:04 PM
Hi,

Is there any way i can find out how many connections my site is making and whether they are all being closed?

I want to know if we are 'clogging' up the server. The site connects using mysql_connect and this should close the connections automatically (i believe) but i am wondering if there is a problem as we have been told we are making too many connections that are not closing!

(The php scripts were originally using mysql_pconnect and this has been altered as i menitioned above.)

I think the info. i get from phpmyadmin for the 'runtime information' is refferring to the whole server (i am hosted on a shared server). Please tell me if i am wrong on this!

Thanks in advance.