MySQL Forums
Forum List  »  Optimizer & Parser

Re: Database error : too many connectons
Posted by: Rick James
Date: September 14, 2010 07:58AM

* Increase max_connections. Watch out; that takes RAM. I would hesitate to go past 1000, even on a relatively big machine.

* Decrease wait_timeout. That will pull the plug on idle connections. This setting is tricky to set.

SHOW VARIABLES LIKE 'max_connections';
SHOW GLOBAL VARIABLES LIKE '%timeout';
SHOW GLOBAL STATUS LIKE '%conn%';
SHOW GLOBAL STATUS LIKE 'Abort%';
SHOW GLOBAL STATUS LIKE 'Uptime';
How much RAM do you have?

Do your visitors connect directly to the database? Or do they go through some API?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Database error : too many connectons
1577
September 14, 2010 07:58AM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.