WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Sleeping Connections consuming all Database resources. Crashing my site. (1 post)

  1. raceman59
    Member
    Posted 1 year ago #

    Hi Frederick.

    I love W3 Total Cache, I have it on all my sites but I just ran into a Very Strange behavior. W3 Total Cache is consuming all my site resources by not closing MySQL connections.

    I Have a fully active site for a very popular nightclub in Hollywood California. Will sent the URL if needed

    On the weekends we get a Lot of traffic and the site needs a robust caching system.

    My intuition is that W3 Total Cache and CloudFlare are the perfect solution.

    I added W3 Total Cache to the site (that was the only change I made to the site) then unfortunately, my website crashed 4 times in as many days.

    I'm on a DV host with Media Temple. Speaking with them, Media Temple says the crashing is because database connections are sleeping rather than closing. They said this could be due to the way it was initially programmed, or that it could be because something has happened since.

    The Media Temple agent Identified the behavioral problem, without any prompting, as W3-total-cache, and the PHP within that plugin that is potentially the issue, looking like something is wrong or has been injected on line 361, which could be preventing the Database queries from actually closing.

    Fredrick Please help

    Richard

    This is what was sent to me from Media Temple about why our site has been crashing;
    "Checking your server, it looks like your web application and database activity was using up most of your resources on the server.
    In essence: Sleeping connections slowly increase the resource usage on the server and can eventually crash your system… Sleeping connections slowly increase the resource usage on the server and can eventually crash your system."

    [Thu Aug 09 17:14:46 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:50 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:52 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:53 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:55 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:56 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:58 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:14:58 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:15:02 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    [Thu Aug 09 17:15:02 2012] [warn] [client  IP withheld] mod_fcgid: stderr: PHP Warning:  Invalid argument supplied for foreach() in (absolute url withheld)/wp-content/plugins/w3-total-cache/lib/W3/Minify.php on line 361, referer: (link withheld)
    Your web developer will need to look into resolving these errors which can increase unnecessary resource usage.

    Here is the output of your databases process list:
    mysql> show full processlist;

    +------+--------------+-------
    ----+--------------+---------+------+-------+-----------------------+
    | Id   | User         | Host      | db           | Command | Time | State | Info                  |
    +------+--------------+-----------+--------------+---------+------+-------+-----------------------+
    | 1598 | (db-username withheld) | localhost | wp_db | Sleep   |   42 |       | NULL                  |
    | 1599 | (db-username withheld) | localhost | wp_db | Sleep   |   42 |       | NULL                  |
    | 1612 | (db-username withheld) | localhost | wp_db | Sleep   |   37 |       | NULL                  |
    | 1613 | (db-username withheld) | localhost | wp_db | Sleep   |   38 |       | NULL                  |
    | 1618 | (db-username withheld) | localhost | wp_db | Sleep   |   36 |       | NULL                  |
    | 1619 | (db-username withheld) | localhost | wp_db | Sleep   |   37 |       | NULL                  |
    | 1654 | (db-username withheld) | localhost | wp_db | Sleep   |   27 |       | NULL                  |
    | 1655 | (db-username withheld) | localhost | wp_db | Sleep   |   27 |       | NULL                  |
    | 1670 | (db-username withheld) | localhost | wp_db | Sleep   |   23 |       | NULL                  |
    | 1671 | (db-username withheld) | localhost | wp_db | Sleep   |   23 |       | NULL                  |
    | 1682 | (db-username withheld) | localhost | wp_db | Sleep   |   17 |       | NULL                  |
    | 1683 | (db-username withheld) | localhost | wp_db | Sleep   |   17 |       | NULL                  |
    | 1690 | (db-username withheld) | localhost | wp_db | Sleep   |   16 |       | NULL                  |
    | 1691 | (db-username withheld) | localhost | wp_db | Sleep   |   16 |       | NULL                  |
    | 1722 | (db-username withheld) | localhost | wp_db | Sleep   |    1 |       | NULL                  |
    | 1723 | (db-username withheld) | localhost | wp_db | Sleep   |    6 |       | NULL                  |
    | 1726 | (db-username withheld) | localhost | wp_db | Sleep   |    0 |       | NULL                  |
    | 1727 | (db-username withheld) | localhost | wp_db | Sleep   |    5 |       | NULL                  |
    | 1730 | (db-username withheld) | localhost | wp_db | Sleep   |    4 |       | NULL                  |
    | 1731 | (db-username withheld) | localhost | wp_db | Sleep   |    4 |       | NULL                  |
    | 1733 | (db-username withheld) | localhost | wp_db | Sleep   |    4 |       | NULL                  |
    | 1734 | (db-username withheld) | localhost | wp_db | Sleep   |    4 |       | NULL                  |
    | 1735 | (db-username withheld) | localhost | wp_db | Sleep   |    1 |       | NULL                  |
    | 1736 | (db-username withheld) | localhost | wp_db | Sleep   |    3 |       | NULL                  |
    | 1739 | (db-username withheld) | localhost | wp_db | Sleep   |    3 |       | NULL                  |
    | 1740 | (db-username withheld) | localhost | wp_db | Sleep   |    3 |       | NULL                  |
    | 1745 | (db-username withheld) | localhost | wp_db | Sleep   |    0 |       | NULL                  |
    | 1746 | (db-username withheld) | localhost | wp_db | Sleep   |    1 |       | NULL                  |
    | 1747 | (db-username withheld) | localhost | wp_db | Sleep   |    0 |       | NULL                  |
    +------+--------------+-----------+--------------+---------+------+-------+-----------------------+

    http://wordpress.org/extend/plugins/w3-total-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic