Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
carverrn Offline
New Member
 
Posts: 8
Join Date: Apr 2008
MySQL error: max_user_connections - 21-08-2008, 09:29 PM

We've been running SupportSuite for months without any significant problems. Today we encountered the following error:
Quote:
Warning: mysql_connect() [function.mysql-connect]: User runcom_kayako5 has already more than 'max_user_connections' active connections in /home/runcom/public_html/support/includes/functions.php on line 421
User runcom_kayako5 has already more than 'max_user_connections' active connections
Our server tech support said that he noticed that most of the MySQL processes were sleeping and suggested that the application, SupportSuite, may not be properly closing it's database connections all the time.

Is this a known issue?

Regards,
Rich
   
Reply With Quote
  (#2) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
21-08-2008, 09:37 PM

This indicates that you're hitting the RAM limit on your hosting, and that your host has not appropriately configured MySQL to clean up zombie connections (something PHP cannot do by definition). MySQL is configured by default to allow those connections to sit around for eight hours, because it expects to be used in datacenters.

Please advise your host to update their MySQL configuration to a more sensible max connection time. Having MySQL connections sit around that long on web hosting is not useful; very few web hosts allow applications to run in unbounded time in the first place, so the chances that a connection even can be useful past the five or so minute mark is exceedingly low.

They're looking for the mysql setting "wait_timeout", which is in my.cnf; if they don't know how to update server variables from the console, they'll also need to restart their database server.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
carverrn Offline
New Member
 
Posts: 8
Join Date: Apr 2008
23-08-2008, 10:35 PM

Our host said there was a lot of connection threads that were sleeping. According to phpMyAdmin "Server variables and settings"our "wait_timeout" value is set to 20.

We recently had some server updates too (apache, PHP4, PHP5) but the MySQL server (4.1.22-standard) was not updated.

Any ideas or suggestions?

Thanks,
Rich
   
Reply With Quote
  (#4) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,668
Join Date: Jan 2006
Location: United Kingdom
23-08-2008, 10:39 PM

Hi Rich,

What is max_user_connections set to?


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#5) Old
carverrn Offline
New Member
 
Posts: 8
Join Date: Apr 2008
24-08-2008, 09:45 PM

I'm not sure what max_user_connections was but here is was our server support said today:

Quote:
Your software seems to be keeping persistent connections and it accumulates causing this issue

Code:
+--------+----------------+-----------+---------------+---------+------+-------+------------------+
| Id     | User           | Host      | db            | Command | Time | State | Info             |
+--------+----------------+-----------+---------------+---------+------+-------+------------------+
| 183318 | runcom_kayako5 | localhost | runcom_kaYako | Sleep   | 8866 |       |                  |
| 183533 | runcom_kayako5 | localhost | runcom_kaYako | Sleep   | 8446 |       |                  |
| 183553 | runcom_kayako5 | localhost | runcom_kaYako | Sleep   | 8400 |       |                  |
| 183571 | runcom_kayako5 | localhost | runcom_kaYako | Sleep   | 8353 |       |                  |
+--------+----------------+-----------+---------------+---------+------+-------+------------------+
Anyhow I have increased the max user connections to 80 now.
We are, and have been from the start, running the mail parser from a CRON job "http://support.ourdomain.com/cron/index.php?_t=parser". Could that be leaving any connections open? We were running it every 5 minutes but I've changed it to every 10 minutes for now.

Regards,
Rich

Last edited by carverrn; 24-08-2008 at 09:47 PM..
   
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scalability nickg SupportSuite, eSupport and LiveResponse 11 16-07-2008 04:15 AM
MySQL, PHP, IISv6 & Zend Installation Brendan.main Installation & Upgrading 8 30-05-2008 05:07 PM
Moving support suite from MySQL 4 to MySQL 5 ilion SupportSuite, eSupport and LiveResponse 2 24-11-2006 11:33 PM
Need Help Installing MySQL & PHP on Windows 2003 with IIS 6 sjvtech Installation & Upgrading 3 20-04-2006 02:17 AM



Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Help desk software by Kayako.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48