![]() |
Server gurus step in~! (Solution to crashing server due to traffic spikes!)
What is the solution to this database error:
User 123456 already has more than 'max_user_connections' active connections.... One of our sites hosted on a dedicated by itself cant seem to have more than 200-250 users online or it crashes. What do you suggest? We have tried a 'cache' -- with no luck when big spikes of traffic hit. Does this means its time to increase the server size? If so, for a media transfer site, -would you rather 2 dedicated servers or just 1 high powered dedicated? What type of server is best for a High trafficked tube? This error is hindering our growth--- someone help us out-- What would be the setup to have 10,000 people at a time uploading and viewing media at one time? Someone help out-- lets do business host |
so your saying you can't increase the max_user_connections value above 200-250 without it crashing?
|
Doubt it JCK, increase max_user_connections in the mysql config file.
http://dev.mysql.com/doc/refman/5.0/...resources.html |
increase max_user_connections or decrease keepalive/timeout
|
what did your hosting company say ?
from the sounds of your post you should have a managed server with the kind of questions your asking. |
Host gators default is: 25
They have it set to 25 on this dedicated server...they say they dont want to change it it. They are saying the problem is the code needs to be optimized... and upping the connections amount is just a temporary band-aid that will still not stop the problem, and maybe make it worse. Is this accurate? Then sent me this in a email: Quote:
|
Just talk to the guy who hosts many a tube... Brad at mojohost...
|
what is the point of a dedicated server if the host dictates what the settings are on it. Do you not have root access to login and change it yourself? The default is max_user_connections=0 which is no limit.
|
Quote:
|
Increase max and turn off persistent connections.
|
if its 25 tell them to change it to 50 and see if that helps.
Quote:
|
If you email me I'll try and help more.
|
If you want to run media sites you will have to find solid hoster which knows how to tune site to make sites running smooth. If you aren't allowed to do basic tweaking then there is really nothing you can do except to migrate somewhere else.
|
Crank up max users.
|
First check the slow query log, EXPLAIN the queries, and add the needed indexes so fewer connections are required. Then increase max connections and benchmark with and without persistent connections.
Hostgator's flat out refusal is in my opinion unacceptable. When we invite webmasters to host with us, we FIX such problems, not refuse to cooperate. (Yes we still do some hosting - for established clients only, we refer most people elsewhere, so this isn't intended to spam it.) |
HostGator is your first problem.
|
Quote:
if you own dedicated server then you should own it., what i mean is you should have root, and change the settings as per your requiremenets. good luck. |
|
All times are GMT -7. The time now is 09:50 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123