Performance issues

General, off-topic discussion about things of interest to the members of these forums.

Moderator: cheriff

Post Reply
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Performance issues

Post by Arwin »

The last few days I'm getting the occasionaly too many connections message (as below).

Is there anything we can do to help with that?

Warning: mysql_connect(): Too many connections in /usr/local/www/psdev/forums/db/mysql4.php on line 48

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /usr/local/www/psdev/forums/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /usr/local/www/psdev/forums/db/mysql4.php on line 331
phpBB : Critical Error

Could not connect to the database
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

The number of connections allowed is controlled by the max_connections system variable. Its default value is 100. If you need to support more connections, you should restart mysqld with a larger value for this variable.
http://dev.mysql.com/doc/mysql/en/too-m ... tions.html

Perhaps Oobles can change this value...?
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

*bump*

Again today between 12:00 - 12:30 (GMT +01)

Maybe a backup scheduled at that time?
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post by Oobles »

I'm not sure if there is much I can do about this. It seems to happen at times some people are attempting to index the site. This creates something like a denial of service attack. The other symptom which I see nearly every second day is all mbufs exhausted. I don't know what can be done about these issues. I check the server periodically and the database connection count is not usually very high.

Hope that explains it.
David.

PS If you have any suggestions for improving this or limiting this type of denial of service attack please let me know.
Post Reply