Since several months we have the problem when too many users are active in the forums, the database will not allow any more connections. At the moment we can't do anything to fix that, because we're on a shared server without access to the mysql settings. Well, we still can live with that until running our own server.
But yesterday the log was filled up with these "User ubb has already more than 'max_user_connections' active connections" errors. Even the problem only consisted for a few seconds!
The log has got more than 3800 rows and start with:
[ERROR][Thu, Oct 07 2004 15:58:07 +0200] [/showflat.php] [80.144.38.180] Script: - Line: Unable to connect to the database! - User ubb has already more than 'max_user_connections' active connections
[ERROR][Thu, Oct 07 2004 15:58:07 +0200] [/showflat.php] [80.144.38.180] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '480' - User ubb has already more than 'max_user_connections' active connections
[ERROR][Thu, Oct 07 2004 15:58:07 +0200] [/showflat.php] [80.144.38.180] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '480' - User ubb has already more than 'max_user_connections' active connections
[ERROR][Thu, Oct 07 2004 15:58:07 +0200] [/showflat.php] [80.144.38.180] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '480' - User ubb has already more than 'max_user_connections' active connections
.
.
.
[ERROR][Thu, Oct 07 2004 15:58:08 +0200] [/showflat.php] [80.144.38.180] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '480' - User ubb has already more than 'max_user_connections' active connections
There are 545 Rows with the same error, almost same time, same U_Number. How can this happen? I'm quite sure the query really isn't executed 545 times...
The log continues with:
[ERROR][Thu, Oct 07 2004 15:58:09 +0200] [/showflat.php] [82.182.119.10] Script: - Line: Unable to connect to the database! - User ubb has already more than 'max_user_connections' active connections
[ERROR][Thu, Oct 07 2004 15:58:09 +0200] [/showflat.php] [82.182.119.10] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '' - User ubb has already more than 'max_user_connections' active connections
[ERROR][Thu, Oct 07 2004 15:58:09 +0200] [/showflat.php] [82.182.119.10] Script: /htdocs/forum/ubbt.inc.php - Line: 2034 SELECT U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned,U_LastOn,U_OC_Userid FROM w3t_Users WHERE U_Number = '' - User ubb has already more than 'max_user_connections' active connections
.
.
.
and so on with different User IDs.
Any ideas?