Too many connections error












0















I am using Magento 1.9.1 with all patches installed on a windows machine and i'm getting this error



a:4:{i:0;s:43:"SQLSTATE[08004] [1040] Too many connections";i:1;s:2730:"#0 ..pathlibZendDbAdapterPdoMysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 ..pathlibVarienDbAdapterPdoMysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 ..pathlibZendDbAdapterAbstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 ..pathlibZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 ..pathlibVarienDbAdapterPdoMysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 ..pathappcodecoreMageCoreModelResource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 ..pathappcodecoreMageCoreModelResource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 ..pathappcodecoreMageCoreModelResourceDbCollectionAbstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 ..pathappcodecoreMageCoreModelConfig.php(1354): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 ..pathappcodecoreMageCoreModelConfig.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 ..pathappMage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 ..pathappcodecoreMageCoreModelAbstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 ..pathappcodecoreMageCoreModelAbstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 ..pathappcodecoreMageCoreModelApp.php(608): Mage_Core_Model_Abstract->getCollection()
#18 ..pathappcodecoreMageCoreModelApp.php(466): Mage_Core_Model_App->_initStores()
#19 ..pathappcodecoreMageCoreModelApp.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 ..pathappMage.php(684): Mage_Core_Model_App->run(Array)
#21 ..pathindex.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


Can you try to help me to understand why this happens, and what is the best configuration for Mysql?










share|improve this question

























  • Please elaborate on what you've tried so far to solve your problem.

    – Julien Lachal
    Aug 5 '16 at 13:13











  • At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

    – Ivan
    Aug 5 '16 at 13:18











  • Well, it sounds like your DB is really busy.

    – Julien Lachal
    Aug 5 '16 at 13:21











  • yes it is so, can you suggest me some configuration or something to change?

    – Ivan
    Aug 5 '16 at 13:24











  • when you say "on a windows machine", do you mean a server or locally on your computer?

    – Julien Lachal
    Aug 5 '16 at 14:21
















0















I am using Magento 1.9.1 with all patches installed on a windows machine and i'm getting this error



a:4:{i:0;s:43:"SQLSTATE[08004] [1040] Too many connections";i:1;s:2730:"#0 ..pathlibZendDbAdapterPdoMysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 ..pathlibVarienDbAdapterPdoMysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 ..pathlibZendDbAdapterAbstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 ..pathlibZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 ..pathlibVarienDbAdapterPdoMysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 ..pathappcodecoreMageCoreModelResource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 ..pathappcodecoreMageCoreModelResource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 ..pathappcodecoreMageCoreModelResourceDbCollectionAbstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 ..pathappcodecoreMageCoreModelConfig.php(1354): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 ..pathappcodecoreMageCoreModelConfig.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 ..pathappMage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 ..pathappcodecoreMageCoreModelAbstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 ..pathappcodecoreMageCoreModelAbstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 ..pathappcodecoreMageCoreModelApp.php(608): Mage_Core_Model_Abstract->getCollection()
#18 ..pathappcodecoreMageCoreModelApp.php(466): Mage_Core_Model_App->_initStores()
#19 ..pathappcodecoreMageCoreModelApp.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 ..pathappMage.php(684): Mage_Core_Model_App->run(Array)
#21 ..pathindex.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


Can you try to help me to understand why this happens, and what is the best configuration for Mysql?










share|improve this question

























  • Please elaborate on what you've tried so far to solve your problem.

    – Julien Lachal
    Aug 5 '16 at 13:13











  • At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

    – Ivan
    Aug 5 '16 at 13:18











  • Well, it sounds like your DB is really busy.

    – Julien Lachal
    Aug 5 '16 at 13:21











  • yes it is so, can you suggest me some configuration or something to change?

    – Ivan
    Aug 5 '16 at 13:24











  • when you say "on a windows machine", do you mean a server or locally on your computer?

    – Julien Lachal
    Aug 5 '16 at 14:21














0












0








0








I am using Magento 1.9.1 with all patches installed on a windows machine and i'm getting this error



a:4:{i:0;s:43:"SQLSTATE[08004] [1040] Too many connections";i:1;s:2730:"#0 ..pathlibZendDbAdapterPdoMysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 ..pathlibVarienDbAdapterPdoMysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 ..pathlibZendDbAdapterAbstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 ..pathlibZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 ..pathlibVarienDbAdapterPdoMysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 ..pathappcodecoreMageCoreModelResource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 ..pathappcodecoreMageCoreModelResource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 ..pathappcodecoreMageCoreModelResourceDbCollectionAbstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 ..pathappcodecoreMageCoreModelConfig.php(1354): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 ..pathappcodecoreMageCoreModelConfig.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 ..pathappMage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 ..pathappcodecoreMageCoreModelAbstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 ..pathappcodecoreMageCoreModelAbstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 ..pathappcodecoreMageCoreModelApp.php(608): Mage_Core_Model_Abstract->getCollection()
#18 ..pathappcodecoreMageCoreModelApp.php(466): Mage_Core_Model_App->_initStores()
#19 ..pathappcodecoreMageCoreModelApp.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 ..pathappMage.php(684): Mage_Core_Model_App->run(Array)
#21 ..pathindex.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


Can you try to help me to understand why this happens, and what is the best configuration for Mysql?










share|improve this question
















I am using Magento 1.9.1 with all patches installed on a windows machine and i'm getting this error



a:4:{i:0;s:43:"SQLSTATE[08004] [1040] Too many connections";i:1;s:2730:"#0 ..pathlibZendDbAdapterPdoMysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 ..pathlibVarienDbAdapterPdoMysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 ..pathlibZendDbAdapterAbstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 ..pathlibZendDbAdapterPdoAbstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 ..pathlibVarienDbAdapterPdoMysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 ..pathappcodecoreMageCoreModelResource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 ..pathappcodecoreMageCoreModelResource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 ..pathappcodecoreMageCoreModelResourceDbAbstract.php(360): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 ..pathappcodecoreMageCoreModelResourceDbCollectionAbstract.php(134): Mage_Core_Model_Resource_Db_Abstract->getReadConnection()
#12 ..pathappcodecoreMageCoreModelConfig.php(1354): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#13 ..pathappcodecoreMageCoreModelConfig.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#14 ..pathappMage.php(491): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#15 ..pathappcodecoreMageCoreModelAbstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#16 ..pathappcodecoreMageCoreModelAbstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#17 ..pathappcodecoreMageCoreModelApp.php(608): Mage_Core_Model_Abstract->getCollection()
#18 ..pathappcodecoreMageCoreModelApp.php(466): Mage_Core_Model_App->_initStores()
#19 ..pathappcodecoreMageCoreModelApp.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#20 ..pathappMage.php(684): Mage_Core_Model_App->run(Array)
#21 ..pathindex.php(87): Mage::run('', 'store')
#22 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}


Can you try to help me to understand why this happens, and what is the best configuration for Mysql?







magento-1.9 database






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 24 mins ago









Teja Bhagavan Kollepara

3,01241949




3,01241949










asked Aug 5 '16 at 13:08









IvanIvan

11129




11129













  • Please elaborate on what you've tried so far to solve your problem.

    – Julien Lachal
    Aug 5 '16 at 13:13











  • At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

    – Ivan
    Aug 5 '16 at 13:18











  • Well, it sounds like your DB is really busy.

    – Julien Lachal
    Aug 5 '16 at 13:21











  • yes it is so, can you suggest me some configuration or something to change?

    – Ivan
    Aug 5 '16 at 13:24











  • when you say "on a windows machine", do you mean a server or locally on your computer?

    – Julien Lachal
    Aug 5 '16 at 14:21



















  • Please elaborate on what you've tried so far to solve your problem.

    – Julien Lachal
    Aug 5 '16 at 13:13











  • At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

    – Ivan
    Aug 5 '16 at 13:18











  • Well, it sounds like your DB is really busy.

    – Julien Lachal
    Aug 5 '16 at 13:21











  • yes it is so, can you suggest me some configuration or something to change?

    – Ivan
    Aug 5 '16 at 13:24











  • when you say "on a windows machine", do you mean a server or locally on your computer?

    – Julien Lachal
    Aug 5 '16 at 14:21

















Please elaborate on what you've tried so far to solve your problem.

– Julien Lachal
Aug 5 '16 at 13:13





Please elaborate on what you've tried so far to solve your problem.

– Julien Lachal
Aug 5 '16 at 13:13













At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

– Ivan
Aug 5 '16 at 13:18





At the moment i did not try anything, i thing i have to do some specific configuration in my ini file "my.ini", you think so?

– Ivan
Aug 5 '16 at 13:18













Well, it sounds like your DB is really busy.

– Julien Lachal
Aug 5 '16 at 13:21





Well, it sounds like your DB is really busy.

– Julien Lachal
Aug 5 '16 at 13:21













yes it is so, can you suggest me some configuration or something to change?

– Ivan
Aug 5 '16 at 13:24





yes it is so, can you suggest me some configuration or something to change?

– Ivan
Aug 5 '16 at 13:24













when you say "on a windows machine", do you mean a server or locally on your computer?

– Julien Lachal
Aug 5 '16 at 14:21





when you say "on a windows machine", do you mean a server or locally on your computer?

– Julien Lachal
Aug 5 '16 at 14:21










1 Answer
1






active

oldest

votes


















2














check your MySQL settings in my.cnf file, for beging try to increase the max_connections value. Before start to increasing max_connections check do you have enough resources to do that.



Last I highly recommend you to migrate to Linux based hosting for the Magento system.






share|improve this answer
























  • Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

    – Ivan
    Aug 5 '16 at 15:37











  • mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

    – Nikola
    Aug 5 '16 at 18:34













  • Thank you for the suggestion, can i use that command in a wondows machine?

    – Ivan
    Aug 6 '16 at 10:58












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f130170%2ftoo-many-connections-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2














check your MySQL settings in my.cnf file, for beging try to increase the max_connections value. Before start to increasing max_connections check do you have enough resources to do that.



Last I highly recommend you to migrate to Linux based hosting for the Magento system.






share|improve this answer
























  • Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

    – Ivan
    Aug 5 '16 at 15:37











  • mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

    – Nikola
    Aug 5 '16 at 18:34













  • Thank you for the suggestion, can i use that command in a wondows machine?

    – Ivan
    Aug 6 '16 at 10:58
















2














check your MySQL settings in my.cnf file, for beging try to increase the max_connections value. Before start to increasing max_connections check do you have enough resources to do that.



Last I highly recommend you to migrate to Linux based hosting for the Magento system.






share|improve this answer
























  • Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

    – Ivan
    Aug 5 '16 at 15:37











  • mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

    – Nikola
    Aug 5 '16 at 18:34













  • Thank you for the suggestion, can i use that command in a wondows machine?

    – Ivan
    Aug 6 '16 at 10:58














2












2








2







check your MySQL settings in my.cnf file, for beging try to increase the max_connections value. Before start to increasing max_connections check do you have enough resources to do that.



Last I highly recommend you to migrate to Linux based hosting for the Magento system.






share|improve this answer













check your MySQL settings in my.cnf file, for beging try to increase the max_connections value. Before start to increasing max_connections check do you have enough resources to do that.



Last I highly recommend you to migrate to Linux based hosting for the Magento system.







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 5 '16 at 15:26









NikolaNikola

4041314




4041314













  • Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

    – Ivan
    Aug 5 '16 at 15:37











  • mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

    – Nikola
    Aug 5 '16 at 18:34













  • Thank you for the suggestion, can i use that command in a wondows machine?

    – Ivan
    Aug 6 '16 at 10:58



















  • Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

    – Ivan
    Aug 5 '16 at 15:37











  • mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

    – Nikola
    Aug 5 '16 at 18:34













  • Thank you for the suggestion, can i use that command in a wondows machine?

    – Ivan
    Aug 6 '16 at 10:58

















Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

– Ivan
Aug 5 '16 at 15:37





Thank you for suggesting to migrate to Linux i will take it for sure into consideration. For now which value do you think is enought for max_connections? now i have max_connections=450 and memory (RAM) is allocated for 2 GB (i have 4 GB)

– Ivan
Aug 5 '16 at 15:37













mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

– Nikola
Aug 5 '16 at 18:34







mysql -e 'SHOW STATUS WHERE variable_name LIKE "Threads_%" OR variable_name = "Connections"' -u user -p ----> this will show table check for Threads_connected, to see how many connection you have. Also check slow log query log dev.mysql.com/doc/refman/5.7/en/slow-query-log.html there is a lot of articles that can be useful, google will help you for that. If you using mysql greater than 5.6 you can connect to it with MySql workbench there is section Performance, that will help you to watch the MySql in real time.

– Nikola
Aug 5 '16 at 18:34















Thank you for the suggestion, can i use that command in a wondows machine?

– Ivan
Aug 6 '16 at 10:58





Thank you for the suggestion, can i use that command in a wondows machine?

– Ivan
Aug 6 '16 at 10:58


















draft saved

draft discarded




















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f130170%2ftoo-many-connections-error%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

What other Star Trek series did the main TNG cast show up in?

Berlina muro

Berlina aerponto