Jump to content
xisto Community
Sign in to follow this  
MaineFishing45

Overload #2 How to stop or fix it?

Recommended Posts

Anyone know how to stop or fix my #4 SQL error?

 

mySQL error: Too many connectionsmySQL error code: Date: Tuesday 21st of March 2006 01:55:50 PM

Thats what it says, now hopefully like the other times, its going to fix its self and everything will be fine. Thanks, for any help.

 

---

Update

---

Ok, for that same odd reason of all my other errors, my board is now back up 5 minutes later, so I have no clue whats going on.


Edited by MaineFishing45 (see edit history)

Share this post


Link to post
Share on other sites

Well, It was because sql server was down for a little while and then it came back. All sites on Xisto were down...I mean those pages..which were running through Mysql.

Share this post


Link to post
Share on other sites

I don't know the exact reason but in very rare few occasions the SQL will perform a quick check or halted and experiencing a hiccup. This is when you'll see that error message. OpaQue will be able to answer better than I, but this problem resolves itself--as you noticed.

Share this post


Link to post
Share on other sites

this should help you out just a bit

If you get a Too many connections error when you try to connect to the mysql server, this means that all available connections are in use by other clients.
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.

mysqld actually allows max_connections+1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege. By granting the SUPER privilege to administrators and not to normal users (who should not need it), an administrator can connect to the server and use SHOW PROCESSLIST to diagnose problems even if the maximum number of unprivileged clients are connected. See Section 13.5.4.19, “SHOW PROCESSLIST Syntax”.

The maximum number of connections MySQL can support depends on the quality of the thread library on a given platform. Linux or Solaris should be able to support 500-1000 simultaneous connections, depending on how much RAM you have and what your clients are doing. Static Linux binaries provided by MySQL AB can support up to 4000 connections.


but what it is referring to is that a script is running to many queries i think and when it maxes out it shuts down and thus you get that error, but also sometimes a script doesn't get closed properly in php as well gets that as well.

I might be missing something in that but from what i search thats the technical definition and i think I cover a simpler explination of it. 2 Hopefully someone can clarify the statement I made about it.

but if im correct in the definition you must change the value of the connection in order to prevent that error.
Edited by Saint_Michael (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.