skip to Main Content

Hope someone can help! I keep getting these files created in /tmp which creates error below when trying to access web or even the plesk panel until I go in via SSH or FTP and manually delete it (#sql_1ed7_0.MYD):

ERROR: Zend_Db_Statement_Exception: SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_1ed7_0.MYD' (Errcode: 17) (Pdo.php:234)

There is nothing in any of the MySQL logs, changed the mysql tmp directory in my.cnf to home/mysqltmp and still happens so doesnt look that’s the issue. I think its possible to do with httpd.conf, here is the logs around when it happens in the apache error_log:

[Fri Nov 28 16:09:21 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Store/Collection.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:21 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/local/Sns/Quickview/Helper/Data.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:22 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Website.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Image.php - Too many open files in system (pid 15869)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Catalog/Model/Resource/Category/Tree.php - Too many open files in system (pid 15858)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Helper/Abstract.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Catalog/Model/Product.php - Too many open files in system (pid 15856)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Catalog/Model/Category/Attribute/Backend/Image.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Directory/Block/Currency.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/GoogleAnalytics/Block/Ga.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/design/frontend/default/sns_kalins/template/directory/currency.phtml - Too many open files in system (pid 15856)
[Fri Nov 28 16:09:22 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Shipping/Model/Config.php - Too many open files in system (pid 15872)
[Fri Nov 28 16:09:23 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/local/Sns/Ajaxcart/Helper/Core/Url.php - Too many open files in system (pid 15856)
[Fri Nov 28 16:09:23 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/lib/Varien/Db/Ddl/Table.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:23 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/lib/Varien/Event/Observer.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:23 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Config/Data.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:23 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Controller/Request/Http.php - Too many open files in system (pid 15869)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Config/Data.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Adminhtml/Helper/Data.php - Too many open files in system (pid 15874)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Catalog/controllers/CategoryController.php - Too many open files in system (pid 15874)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/lib/Zend/Cache/Core.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Config/Base.php - Too many open files in system (pid 15856)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Store/Group/Collection.php - Too many open files in system (pid 15876)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Abstract.php - Too many open files in system (pid 15874)
[Fri Nov 28 16:09:24 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/.com/httpdocs/app/code/core/Mage/Core/Controller/Request/Http.php - Too many open files in system (pid 15869)
[Fri Nov 28 16:09:42 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Nov 28 16:09:52 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
[Fri Nov 28 17:25:51 2014] [notice] caught SIGTERM, shutting down
[Fri Nov 28 17:25:53 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Nov 28 17:25:54 2014] [warn] RSA server certificate
[Fri Nov 28 17:25:55 2014] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Fri Nov 28 17:25:55 2014] [notice] mod_python: using mutex_directory /tmp 

Completely at a loss….getting no where with Google 🙁 Just installed a full page cache module in magento which I think is the source of the cache file errors in the log but that was installed after this issue started.

Don’t want to have to keep babysitting the server to delete this file again and again.

Worth noting there is no problems with the permissions of the /tmp directory (1777), however the file that’s created has permissions of 644 and as soon as I delete it everything’s back up.

3

Answers


  1. Chosen as BEST ANSWER

    Happened again, logs when the file was created (quite a lot)

    **

    [Thu Dec 04 06:17:11 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:17:21 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:17:31 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:17:32 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Catalog/Helper/Output.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:34 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/allansfurniture.com/httpdocs/app/code/core/Mage/Core/Model/Resource/Abstract.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:34 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:34 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:34 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:34 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:34 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Eav/Model/Resource/Entity/Attribute/Option/Collection.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:35 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Model/Resource/Design.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/PaypalUk/Block/Express/Shortcut.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:35 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Catalog/Helper/Product/Flat.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:35 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Model/Store.php - Too many open files in system (pid 25379)
    [Thu Dec 04 06:17:35 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:35 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run fastcgi
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process production error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:36 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:36 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:37 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:37 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:38 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:38 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Catalog/Model/Product/Url.php - Too many open files in system (pid 25349)
    [Thu Dec 04 06:17:39 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Zend/Locale/Math/PhpMath.php - Too many open files in system (pid 25380)
    [Thu Dec 04 06:17:39 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:39 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:39 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/CatalogInventory/Model/Resource/Stock/Status.php - Too many open files in system (pid 25380)
    [Thu Dec 04 06:17:40 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Page/Block/Html/Wrapper.php - Too many open files in system (pid 25374)
    [Thu Dec 04 06:17:41 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/allansfurniture.com/httpdocs/app/code/core/Mage/Core/Model/Config/Element.php - Too many open files in system (pid 25374)
    [Thu Dec 04 06:17:41 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:17:42 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Block/Template.php - Too many open files in system (pid 25374)
    [Thu Dec 04 06:17:43 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Zend/Controller/Request/Http.php - Too many open files in system (pid 25349)
    [Thu Dec 04 06:17:43 2014] [warn] mod_fcgid: cleanup zombie process 25440
    [Thu Dec 04 06:17:43 2014] [warn] mod_fcgid: cleanup zombie process 25443
    [Thu Dec 04 06:17:43 2014] [warn] mod_fcgid: cleanup zombie process 25444
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:43 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:43 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Varien/Event/Collection.php - Too many open files in system (pid 25379)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Varien/Db/Statement/Pdo/Mysql.php - Too many open files in system (pid 25379)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Eav/Model/Entity/Abstract.php - Too many open files in system (pid 25373)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/allansfurniture.com/httpdocs/lib/Varien/Event/Collection.php - Too many open files in system (pid 25357)
    [Thu Dec 04 06:17:44 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:44 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:44 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:44 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process xf0Zxa8x90xffxffxffx7fxd8x84xf5x80ex7f error
    [Thu Dec 04 06:17:44 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:44 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:44 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:44 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:44 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run x04
    [Thu Dec 04 06:17:44 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process  resuming normal operations error
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Helper/Data.php - Too many open files in system (pid 25357)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Helper/Abstract.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Controller/Response/Http.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:44 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Model/Config.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:45 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Varien/Db/Ddl/Table.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:45 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Core/Model/Resource/Config.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:45 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Zend/Version.php - Too many open files in system (pid 25375)
    [Thu Dec 04 06:17:46 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/index.php - Too many open files in system (pid 25378)
    [Thu Dec 04 06:17:48 2014] [warn] mod_fcgid: cleanup zombie process 25453
    [Thu Dec 04 06:17:48 2014] [warn] mod_fcgid: cleanup zombie process 25456
    [Thu Dec 04 06:17:51 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:01 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:05 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    [Thu Dec 04 06:18:05 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    [Thu Dec 04 06:18:11 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:21 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:21 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/app/code/core/Mage/Review/Helper/Data.php - Too many open files in system (pid 25472)
    [Thu Dec 04 06:18:21 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Zend/Db/Exception.php - Too many open files in system (pid 25472)
    [Thu Dec 04 06:18:27 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Varien/Db/Adapter/Pdo/Mysql.php - Too many open files in system (pid 25472)
    [Thu Dec 04 06:18:31 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:41 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:50 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    [Thu Dec 04 06:18:50 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    [Thu Dec 04 06:18:51 2014] [error] (12)Cannot allocate memory: fork: Unable to fork new process
    [Thu Dec 04 06:18:51 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    [Thu Dec 04 06:18:51 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    [Thu Dec 04 06:18:52 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    [Thu Dec 04 06:18:52 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    [Thu Dec 04 06:18:53 2014] [warn-phpd] mmap cache can't open /var/www/vhosts/site/httpdocs/lib/Zend/Validate/Interface.php - Too many open files in system (pid 25477)
    [Thu Dec 04 06:18:54 2014] [error] (12)Cannot allocate memory: mod_fcgid: can't run /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
    [Thu Dec 04 06:18:54 2014] [warn] (12)Cannot allocate memory: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error
    

    **


  2. It seems what issue not in Magento. Your apache log said: Too many open files in system.

    You need to increase the maximum number of allowed open file descriptors. For doing this find Apache init script and add next line in it:

    ulimit -n 65536 
    

    Usually, Apache init script placed in /etc/init.d/apache2 or /etc/init.d/httpd paths.

    As result it will looks like:

    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides: apache2
    # Required-Start: $local_fs $remote_fs $network $syslog $named
    # Required-Stop: $local_fs $remote_fs $network $syslog $named
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # X-Interactive: true
    # Short-Description: Start/stop apache2 web server ### END INIT INFO
    set -e
    ulimit -n 65536
    

    After that restart Apache:

    /etc/init.d/apache2 restart
    
    Login or Signup to reply.
  3. Result from command cat /proc/user_beancounters

       uid  resource                     held              maxheld                                       
    barrier                limit              failcnt
     78271296:  kmemsize                 35731312             38395904             4                         
    1943040             50331648                 1626
                lockedpages                     0                    0                                       
        512                  512                    0
                privvmpages                301647               306222                                       
    1048576              1153433                    0
                shmpages                    26837                26837                                       
      32768                32768                    0
                dummy                           0                    0  922337203685                         
    4775807  9223372036854775807                    0
                numproc                        94                  162                                       
        256                  256                    0
                physpages                  124571               132416                                       
    1048576              1048576                    0
                vmguarpages                     0                    0                                       
     524288               524288                    0
                oomguarpages                87348                87348                                       
     524288               524288                    0
                numtcpsock                     23                   24                                       
        720                  720                    0
                numflock                       27                   28                                       
        376                  413                    0
                numpty                          1                    1                                       
         32                   32                    0
                numsiginfo                      0                   54                                       
        512                  512                    0
                tcpsndbuf                  348800               366240                                       
    3440640              5406720              8896551
                tcprcvbuf                  360448               376832                                       
    3440640              5406720                    0
                othersockbuf               180336               192920                                       
    2252160              4194304                    0
                dgramrcvbuf                     0                    0                                       
     524288               576716                    0
                numothersock                  129                  133                                       
        720                  720                    0
                dcachesize               11533698             11533940             1                         
    0485760             11534336                    0
                numfile                      2985                 3135                                       
       8192                 8192                    0
                dummy                           0                    0  922337203685                         
    4775807  9223372036854775807                    0
                dummy                           0                    0  922337203685                         
    4775807  9223372036854775807                    0
                dummy                           0                    0  922337203685                         
    4775807  9223372036854775807                    0
                numiptent                      21                   21                                       
        200                  205                    0
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search