Hi,
I have a very dynamic site which is, in simplest terms, a chatting system. I use mySQL and PHP to run the system and I have always had the following problem:
When about 25-30 users are online and chatting, mySQL is constanty 'crashing' and spitting out an error like: "Warning: MySQL Connection Failed: Too many connections in common.rpc on line 23
Cannot establish link to database."
The max users is set to something like 100, so I don't know why the system is constantly doing this. I've gone through all of the scripts that power the site and made them as efficient as possible..made sure all open mySQL links were being closed, etc., etc. Does ANYONE out there have an ideas/advice? I've been dealing with this annoyance for almost a year now and I can't seem to fix it; even the mySQL.com mailing list people and those that helped create mySQL can only give me "duuuuuuh" type of unhelpful answers. I'm really reaching my ropes end, here.
Could it possibly have anything to do with using mysql_connect() (or mysql_pconnect) in conjunction with mysql_select_db() ? Could this be choking mySQL up?
I'm going nuts, here!!!! ; )