PDA

View Full Version : Small board getting max_user_connection errors


chikuru
02-27-2017, 03:27 AM
The forum is very small and rarely gets 20 users online (guest and memers combined).
max_user_connection is set to 80
persistent connection settings is:
$config['MasterServer']['usepconnect'] = 0;

What could be the problem and possible fix?

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User xxxxx_xxxxxxxx already has more than 'max_user_connections' active connections
/home/xxxxx/public_html/forum/includes/class_core.php on line 317

final kaoss
02-27-2017, 05:53 PM
And this is on a vps?

Dave
02-27-2017, 05:57 PM
Well the fix is pretty simple, increase the value of max_user_connection. Most shared hosts usually set it to 250/300 so I would set it to that first and see if that fixes it.

chikuru
02-28-2017, 01:43 AM
Well the fix is pretty simple, increase the value of max_user_connection. Most shared hosts usually set it to 250/300 so I would set it to that first and see if that fixes it.

Is mysql server restart needed after changing the value?

bzcomputers
02-28-2017, 03:20 AM
Is mysql server restart needed after changing the value?

Yes

chikuru
03-02-2017, 04:59 PM
Is there vbulletin-side optimization to reduce max connection and max user connection error?

Lynne
03-02-2017, 05:23 PM
No, there is not. There is some article in the articles section for getting around it on some servers, but I have never tried and have no idea if it is still valid.

Paul M
03-02-2017, 09:39 PM
Is there vbulletin-side optimization to reduce max connection and max user connection error?
No, its not a vbulletin issue, its a MySQL issue, you value is too low (and your mysql timeout is probably too high).