The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Too many connections problem...
Dear staff,
Recently (6 months) ago i moved from a shared host to a owned VPS (30gb, 1gb ram, dual xeon). http://www.pc-helpforum.be Now each 2 weeks we are goiing down due to this error: Database error in vBulletin : mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections /home/pchelp/domains/pc-helpforum.be/public_html/includes/class_core.php on line 311 MySQL Error : Error Number : Request Date : Thursday, September 24th 2009 @ 03:37:50 PM Error Date : Thursday, September 24th 2009 @ 03:37:50 PM Script : http://www.pc-helpforum.be/showthread.php?t=612 Referrer : http://www.google.be/url?sa=t&source...l_iWJaugdycx2Q IP Address : 78.22.169.108 Username : Classname : vB_Database MySQL Version : We received hundreds of these emails. Now we did check the serverload and i went from 0.6 to 2,5 serverload, although we had 700mb of free ram. what is the suggestion you have or what can we check or change? Thanks, Best Regards, Karel Beuckelaere http://www.pc-helpforum.be |
#2
|
||||
|
||||
That is a server issue. See this - Common MySQL Error Messages
|
#3
|
|||
|
|||
Edit my.cnf (Typically /etc/my.cnf or /etc/mysql/my.cnf or /etc/my.ini)
max_connections = xxx Raise the current value by 100 Restart mysql |
#4
|
||||
|
||||
Additionally to raising the max_connections, give mysqltuner / tuning-primer a try to see if there're some more bottlenecks in the DB config.
Just use the outputs of the 2 scripts as some kind of guideline - specially tuning-primer tends to report a way too low key_buffer_size and mysqltuner will nearly always report something about doing an OPTIMIZE run |
#5
|
|||
|
|||
Quote:
--------------- Added [DATE]1254052474[/DATE] at [TIME]1254052474[/TIME] --------------- Quote:
Will check this out... |
#6
|
|||
|
|||
I agree. Don't update max_connections until you have run mysqltuner.pl and tuning-primer.sh
Reference: MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh |
#7
|
|||
|
|||
Thanks,
I'm quiet new to this but i found it how to run it. I'm now reading everything and trying to analise it... My vps has 30gb space and 1gb of Ram Here are the results of Tuning Primer Quote:
Quote:
|
#8
|
|||
|
|||
Quote:
You certainly need to reduce max_connections. I suggest you reduce your max_connections to 56, since you have never used more than 15 ! This should solve your problem with too much memory allocated (by MySQL) based on your physical memory. Also, increase your query_cache_size to 32MB and also increase your key_buffer size by a similar amount. Also, increase your join_buffer_size to around 2MB...... If you do this and run for a while, you can run the scripts again and see what is happening. |
#9
|
|||
|
|||
As per announcement, use vBulletin.com for server advice:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|