If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Too many connections?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-07, 06:02
cashblogs cashblogs is offline
Registered User
 
Join Date: Jan 2007
Posts: 2
Too many connections?

Hello

Sorry I posted this in wrong section
Ive read that sometimes there can be too many connections to the database.

Apart from optimizing your scripting code, how do you go about fixing this? Do you simply add new databases or upgrade to a bigger MySQL database?

Thanks for your time and support
Reply With Quote
  #2 (permalink)  
Old 01-28-07, 22:41
pakcik_kantin pakcik_kantin is offline
Registered User
 
Join Date: Jul 2004
Posts: 62
You can set the max_connections
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=800

Once you increase the connections you should consider the memory you should have. So far i've been around with adding more RAMS and CPUS utilizations. But i start to look back to the codes, and upgrade my codes.
Reply With Quote
  #3 (permalink)  
Old 01-29-07, 04:18
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,259
That shoudl do the trick

however You may want to look at why you are using so mnay connections. Are ther number of connections being used appropriate to the number of users.

I'd check that your front end software is using an appropriate number of connections, and is it closing those connections as soon as desirable. Note it may make more sense for an app to open a single connection and maintain that connection for the period of time the app is open, rather than opening many different connections, or constantly closing & reopening a connection. This would probably apply to a database intensive applcation. Close the connection(s) & free up any resources as soon as practical. Some front ends (eg PHP) allow the use of connection sharing.
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On