![]() |
|
Thread Tools |
#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
__________________
Dutch Pc Helpforum - www.pc-helpforum.be No members have liked this post.
|
#2
|
||||
|
||||
That is a server issue. See this - Common MySQL Error Messages
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#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
__________________
1. Adjust File Upload Limits 2. Implementing CSRF Protection in modifications 3. Adjust PhP Variables for Memory Allocated Errors 4. open_basedir issues, try this. No members have liked this post.
|
#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 ![]() No members have liked this post.
|
#5
|
|||
|
|||
Originally Posted by snakes1100
Ok thanks, i raised it to 300. Lets wait and see :-) Thanks for the help.![]()
--------------- Added 27 Sep 2009 at 12:54 ---------------
Originally Posted by Angel-Wings
![]()
Will check this out...
__________________
Dutch Pc Helpforum - www.pc-helpforum.be No members have liked this post.
Last edited by karel1985; 27 Sep 2009 at 12:54. Reason: Auto-Merged DoublePost |
#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 No members have liked this post.
|
#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
__________________
Dutch Pc Helpforum - www.pc-helpforum.be No members have liked this post.
|
#8
|
|||
|
|||
Originally Posted by karel1985
You should follow the recommendations of those scripts, reboot and run for a while, and then run them again.![]()
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. No members have liked this post.
|
#9
|
|||
|
|||
As per announcement, use vBulletin.com for server advice:
__________________
Marco van Herwaarden Ex vBulletin.org Coordinator No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:49.