title: Magento - Too many connections
body: <p>I am getting <code>Too many connections</code> error from Magento. 
  I have increased the <code>max_connection</code> to 1000 but I am still getting the error. 
  I contacted hosting provider and they asked me to use command <code>show processlist;</code> and review my coding. </p>
  
  <p>When I ran the command, I only saw few active connections (about 4 to 5 connection). Therefore, I have no clue how to fix the problem. </p>
  
  <p>I have increased the max_connection to 1500 and I am getting <code>create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug</code> error now. </p>
  
  <p>Could anyone can help me with this situation please?
  I am grateful for your help and time. </p>
  
  <p>This is my my.cnf</p>
  
  <pre><code>key_buffer = 384M
  
  max_allowed_packet = 1M
  
  table_cache = 1024
  
  sort_buffer_size = 2M
  
  read_buffer_size = 2M
  
  read_rnd_buffer_size = 8M
  
  myisam_sort_buffer_size = 64M
  
  thread_cache_size = 16
  
  query_cache_type = 1
  
  query_cache_size = 48M
  
  log_slow_queries=/var/log/mysqld.slowquery.log
  
  max_connections=1000
  
  wait_timeout=120
  
  tmp_table_size = 64M
  
  max_heap_table_size = 64M
  
  innodb_buffer_pool_size = 2048M
  
  innodb_additional_mem_pool_size = 20M
  
  open_files_limit=34484
  </code></pre>
  
  #
  
  <p>And this is show proccesslist</p>
  
  <pre><code>+-------+-----------+-----------+--------------------+----------------+-------+--------------------+------------------+
  | Id    | User      | Host      | db                 | Command        | Time  | State              | Info             |
  
  +-------+-----------+-----------+--------------------+----------------+-------+--------------------+------------------+
  
  |  4729 | root      | localhost | abc_def| Sleep          | 13093 |                    | NULL             |
  
  | 16282 | eximstats | localhost | eximstats          | Sleep          |    84 |                    | NULL             |
  
  | 16283 | DELAYED   | localhost | eximstats          | Delayed insert |    84 | Waiting for INSERT |                  |
  
  | 16343 | root      | localhost | NULL               | Query          |     0 | NULL               | show processlist |
  
  +-------+-----------+-----------+--------------------+----------------+-------+--------------------+------------------+
  4 rows in set (0.00 sec)
  </code></pre>