{"id":7860,"date":"2026-04-23T09:52:11","date_gmt":"2026-04-23T07:52:11","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=7860"},"modified":"2026-04-23T09:52:14","modified_gmt":"2026-04-23T07:52:14","slug":"why-a-prestashop-store-uses-all-cpu-and-ram","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/why-a-prestashop-store-uses-all-cpu-and-ram\/","title":{"rendered":"Why a PrestaShop store uses all CPU and RAM"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">PrestaShop is a robust e-commerce platform designed for scale, but its performance depends directly on how server resources are managed. When a store consumes high amounts of CPU and RAM, it often results in slower page loads, administrative delays, or intermittent service gaps.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/why-a-prestashop-store-uses-all-cpu-and-ram\/#Understanding_Resource_Consumption\" >Understanding Resource Consumption<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/why-a-prestashop-store-uses-all-cpu-and-ram\/#Main_Causes_of_Resource_Overload\" >Main Causes of Resource Overload<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/why-a-prestashop-store-uses-all-cpu-and-ram\/#Practical_Solutions\" >Practical Solutions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/why-a-prestashop-store-uses-all-cpu-and-ram\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Understanding_Resource_Consumption\"><\/span>Understanding Resource Consumption<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In a hosting environment, CPU (Central Processing Unit) handles the logic\u2014calculating prices, processing orders, and executing scripts. RAM (Random Access Memory) acts as the workspace where PHP scripts and database queries are temporarily stored for quick access.<\/p>\n\n\n\n<\/div>\n\n<div id=\"mybox-2274354358\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">High consumption is usually not a sign of a failing server, but rather an indicator that the application is performing a high volume of complex tasks simultaneously.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Main_Causes_of_Resource_Overload\"><\/span>Main Causes of Resource Overload<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td><strong>Cause<\/strong><\/td><td><strong>Impact on Resources<\/strong><\/td><\/tr><\/thead><tbody><tr><td><strong>Unoptimized Modules<\/strong><\/td><td>Each active module runs scripts that require both CPU and RAM. Poorly coded extensions can cause memory leaks or infinite loops.<\/td><\/tr><tr><td><strong>Database Complexity<\/strong><\/td><td>Large inventories with many variations require complex SQL queries. Without proper indexing, the server spends more CPU time searching for data.<\/td><\/tr><tr><td><strong>Lack of Caching<\/strong><\/td><td>Without a cache, every visitor request forces the server to rebuild the entire page from scratch using PHP and MySQL.<\/td><\/tr><tr><td><strong>Bot and Crawler Activity<\/strong><\/td><td>Search engine bots or malicious scripts can generate hundreds of requests per second, simulating high traffic levels.<\/td><\/tr><tr><td><strong>Heavy Scheduled Tasks<\/strong><\/td><td>CRON jobs for inventory sync or newsletters can create sudden spikes if they run too frequently during peak hours.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Practical_Solutions\"><\/span>Practical Solutions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To maintain a stable environment and reduce the load on your <strong>mybox<\/strong> infrastructure, consider the following technical adjustments:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1. Optimize the Module Stack<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Review your installed modules in the <strong>mybox panel<\/strong> or PrestaShop back office. Disable and delete any extensions that are not essential to your core business logic. Focus on those that handle external integrations or complex tracking, as these are often the most resource-intensive.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Enable Native Caching<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to <strong>Advanced Parameters &gt; Performance<\/strong> in your PrestaShop admin.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Smarty:<\/strong> Enable &#8220;Template compilation&#8221; only when making changes. Turn on &#8220;Cache.&#8221;<\/li>\n\n\n\n<li><strong>CCC (Combine, Compress, and Cache):<\/strong> Enable these options to reduce the number of requests the server must process for CSS and JavaScript.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3. Update Environment Versions<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Newer versions of PHP are significantly more efficient at memory management. In the <strong>mybox panel<\/strong>, ensure your store is running on the latest PHP version compatible with your PrestaShop release. This change alone can often reduce CPU usage by <strong>20% to 30%<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Manage Automated Tasks (CRON)<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you use CRON jobs for syncing stock or prices, space them out. Avoid running multiple heavy tasks at the exact same minute. Moving intensive processes\u2014like generating large XML feeds\u2014to nighttime hours (e.g., 03:00) prevents them from competing with customer traffic for resources.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. Security and Bot Filtering<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If resource usage remains high despite optimization, check your traffic logs for unusual activity. Using the <strong>mybox panel<\/strong> security features or a Web Application Firewall (WAF) can block aggressive bots before they reach your PHP scripts, saving significant CPU and RAM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Managing a PrestaShop store&#8217;s resource usage is a balance between functionality and efficiency. By implementing a strong caching strategy, keeping your environment updated, and auditing your modules, you ensure that your server resources are used to power sales rather than background noise. This proactive approach leads to a faster user experience and higher conversion rates.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[9115,9116,771,1352,1650,9108,9111,9112,9113,9114],"class_list":["post-7860","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-unoptimized-modules","manual_kb_tag-database-indexing","manual_kb_tag-server-resources","manual_kb_tag-resource-consumption","manual_kb_tag-sql-queries","manual_kb_tag-cpu-usage","manual_kb_tag-prestashop-performance","manual_kb_tag-prestashop-optimization","manual_kb_tag-ram-usage","manual_kb_tag-module-optimization"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7860\/revisions"}],"predecessor-version":[{"id":7861,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7860\/revisions\/7861"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=7860"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=7860"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=7860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}