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
Tamarind Offline
New Member
 
Posts: 5
Join Date: Jun 2008
Exclamation Kayako is creating 1000's of mySQL processes - 08-07-2008, 02:12 PM

Kayako is creating 1000's of mySQL processes that is crashing server....Any Ideas???

----------------------------------

| 137709 | websupp_esuppor | localhost | websupp_esupport | Sleep | 2091 | | |
| 137721 | websupp_esuppor | localhost | websupp_esupport | Sleep | 38 | | |
| 137784 | websupp_esuppor | localhost | websupp_esupport | Sleep | 730 | | |
| 137796 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1358 | | |
| 137801 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1963 | | |
| 137804 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1621 | | |
| 137817 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1967 | | |
| 137842 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1772 | | |
| 137854 | websupp_esuppor | localhost | websupp_esupport | Sleep | 362 | | |
| 137894 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1551 | | |
| 137926 | websupp_esuppor | localhost | websupp_esupport | Sleep | 729 | | |
| 138187 | websupp_esuppor | localhost | websupp_esupport | Sleep | 2087 | | |
| 138287 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1626 | | |
| 138343 | websupp_esuppor | localhost | websupp_esupport | Sleep | 889 | | |
| 138347 | websupp_esuppor | localhost | websupp_esupport | Sleep | 5635 | | |
| 138622 | websupp_esuppor | localhost | websupp_esupport | Sleep | 1582 | | |
| 138654 | websupp_esuppor | localhost | websupp_esupport | Sleep | 392 | | |
| 138923 | websupp_esuppor | localhost | websupp_esupport | Sleep | 414 | | |
| 139038 | websupp_esuppor | localhost | websupp_esupport | Sleep | 2932 | | |
| 139462 | websupp_esuppor | localhost | websupp_esupport | Sleep | 6 | | |
| 139487 | websupp_esuppor | localhost | websupp_esupport | Sleep | 905 | | |
| 139559 | websupp_esuppor | localhost | websupp_esupport | Sleep | 2121 | | |
| 139561 | websupp_esuppor | localhost | websupp_esupport | Sleep | 2721 | | |
| 139601 | websupp_esuppor | localhost | websupp_esupport | Sleep | 302 | | |
   
Reply With Quote
  (#2) Old
sergioag Offline
New Member
 
Posts: 8
Join Date: Oct 2007
Location: Lima-Peru
08-07-2008, 06:11 PM

Hi

WHat version of MySQL are you using? Are you using persistent connections?

Sergio Aguayo
   
Reply With Quote
  (#3) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
08-07-2008, 09:20 PM

This almost certainly means that PHP is aborting on a repeat basis (probably during cron), and your MySQL instance is using the default dead connection cleanup time (eight hours).

Strongly suggest you update your my.cnf/my.ini MYSQL_OPT_CONNECT_TIMEOUT setting to a more appropriate value (my servers use 900, which is 15 minutes measured in seconds). Also, it may be appropriate for you to find the reason PHP is crashing, which is typically due to out of memory concerns, max post size or mysql's packet max size.

If you would like, you're welcome of course to open a ticket with the support staff.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#4) Old
dotboost Offline
New Member
 
Posts: 20
Join Date: Apr 2006
08-07-2008, 10:29 PM

Quote:
Originally Posted by John Haugeland View Post
This almost certainly means that PHP is aborting on a repeat basis (probably during cron), and your MySQL instance is using the default dead connection cleanup time (eight hours).

Strongly suggest you update your my.cnf/my.ini MYSQL_OPT_CONNECT_TIMEOUT setting to a more appropriate value (my servers use 900, which is 15 minutes measured in seconds). Also, it may be appropriate for you to find the reason PHP is crashing, which is typically due to out of memory concerns, max post size or mysql's packet max size.

If you would like, you're welcome of course to open a ticket with the support staff.
I have the exactly the same issue with 3 servers where i have kayako's installations. I modified the MYSQL_OPT_CONNECT_TIMEOUT to 1200 on one servers and is ok on that machine.
Anyway, the issue occur only on 3.20.02, previous versions was fine on same servers with exact the same server configuration.
I am sure is something in kayako, but well, will see the next versions...
   
Reply With Quote
  (#5) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
Think it over. - 08-07-2008, 10:48 PM

Quote:
Originally Posted by dotboost View Post
I am sure is something in kayako, but well, will see the next versions...
I really hope you'll open a support ticket. Every time I've seen this, it's been a question of the several possibilities I already listed.

We can probably fix this if you'll give it a chance.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#6) Old
dotboost Offline
New Member
 
Posts: 20
Join Date: Apr 2006
27-08-2008, 12:30 AM

ticket ICC-633800
from 26 Mar 2008
i know the issue is somewhere else then the 'server misconfiguration'
   
Reply With Quote
  (#7) Old
Chris Boulton Offline
Member
 
Posts: 152
Join Date: Jun 2003
Location: Sydney, Australia
27-08-2008, 12:34 AM

While we're on the topic - is SupportSuite using mysql_pconnect or just mysql_connect? From what we've seen, it seems to be mysql_pconnect.

(Don't feel like violating our license agreement just to check swift.php )
   
Reply With Quote
  (#8) Old
dotboost Offline
New Member
 
Posts: 20
Join Date: Apr 2006
27-08-2008, 12:41 AM

i use esupport, and i don't know what is using: pconnect or connect , the files related to DB connections are encoded ....
   
Reply With Quote
  (#9) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
27-08-2008, 07:10 AM

Quote:
Don't feel like violating our license agreement just to check swift.php
Hehe, hardly enforceable. *winks*


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#10) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,664
Join Date: Jan 2006
Location: United Kingdom
Thumbs down 27-08-2008, 01:58 PM

Quote:
Originally Posted by craigbrass View Post
Hehe, hardly enforceable. *winks*
Actually, we would like to think so.

We also will 'enforce' against encouraging others to break their agreement here on the forums, with an infraction or ban. Comments like this on our own forum are not only rude, but completely unacceptable .


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#11) Old
craigbrass Offline
Senior Member
 
Posts: 5,922
Join Date: Jun 2005
Location: Cumbria, UK
27-08-2008, 03:30 PM

How was that an encouragement or rude?

What I said there was simply that it couldn't be proved that it had been done.


Craig Brass - Kayako Forum Squatter (Note: I am NOT a staff member)

Icon Headquarters - Its Elixir - Web2Messenger
   
Reply With Quote
  (#12) Old
Ryan Lederman Offline
Chief Operating Officer
 
Ryan Lederman's Avatar
 
Posts: 821
Join Date: May 2005
Location: Boise, Idaho
27-08-2008, 05:29 PM

It will use mysql_connect() or mysql_pconnect() depending on the value of this line in config/config.php (line 50 in 3.30.x):

Code:
define("P_CONNECT", false);
So, by default it is using mysql_connect() (non-persistent connections)


Ryan Lederman (ryan.lederman ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#13) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
27-08-2008, 07:37 PM

This is very clearly an issue of a misconfigured MYSQL_OPT_CONNECT_TIMEOUT. Stopping this is the entire purpose of that setting.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#14) Old
dotboost Offline
New Member
 
Posts: 20
Join Date: Apr 2006
27-08-2008, 09:53 PM

Quote:
Originally Posted by John Haugeland View Post
This is very clearly an issue of a misconfigured MYSQL_OPT_CONNECT_TIMEOUT. Stopping this is the entire purpose of that setting.
Is a clean and default installation of Centos 4.4 with Plesk 8.6.0 , so no extra configuration was made.
That's why i don't understand why i need to add extra configuration to the server in order to prevent such multiple connections.
   
Reply With Quote
  (#15) Old
John Haugeland Offline
Developer
 
John Haugeland's Avatar
 
Posts: 800
Join Date: Dec 2007
Location: Idaho
27-08-2008, 10:37 PM

Because MySQL is set up by default in lots of ways which aren't appropriate for web applications. This is the same reason you have to set your max_packet_size and a variety of other MySQL defaults.

The default configuration is meant for datacenters. Datacenter requirements are very different than web application requirements. If one size fit all, the configuration wouldn't need to be there.


John Haugeland (john.haugeland ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
Reply

Tags
1000, mysql, processes

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
MySQL, PHP, IISv6 & Zend Installation Brendan.main Installation & Upgrading 8 30-05-2008 05:07 PM
Error Creating Tables Danym SupportSuite, eSupport and LiveResponse 1 03-11-2006 11:22 AM
Moving Kayako / MySQL Database to Another Server (and Backups) jtaugher SupportSuite, eSupport and LiveResponse 5 25-08-2006 02:14 PM



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