List:General Discussion« Previous MessageNext Message »
From:Erik Stephens Date:March 21 2001 9:40pm
Subject:Re: Too Many Connections
View as plain text  
Since you feel that you should never have more than 15 simultaneous
connections at a given time, I don't think modifying max_connections
will help.  I would first verify that the PHP code is closing the
connection.  If it isn't, then the connection will stay open until it
times out.  If you do, however, decide to modify some of the
configurable mysqld parameters, then take a look at chapter 12 of the
manual, the optimization one.  It mentions some sample configurations
for various levels of machines.

I'd recommended scheduling a script to run every x minutes/hours that
would capture what connections are established.  A `mysqladmin
processlist` should give you information about all open connections. 
Example output:

1000 $ mysqladmin processlist
+------+---------+--------------------+------------+---------+-------+-------+------------------+
| Id   | User    | Host               | db         | Command | Time  |
State | Info             |
+------+---------+--------------------+------------+---------+-------+-------+------------------+
....

Good luck,
Erik
Thread
Read/write table lockFabio Galarraga20 Mar
  • Re: Read/write table lockJeremy D. Zawodny20 Mar
  • Re: Read/write table lockGerald L. Clark20 Mar
RE: Read/write table lockFabio Galarraga21 Mar
  • Re: Read/write table lockGerald L. Clark21 Mar
  • Too Many ConnectionsWebmaster21 Mar
Re: Too Many ConnectionsErik Stephens21 Mar