{"id":4957,"date":"2019-07-25T13:21:29","date_gmt":"2019-07-25T07:51:29","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=4957"},"modified":"2026-11-25T11:49:22","modified_gmt":"2026-11-25T06:19:22","slug":"common-conflict-in-plesk-the-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-y-bytes","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/common-conflict-in-plesk-the-allowed-memory-size-of-x-bytes-exhausted-tried-to-allocate-y-bytes\/","title":{"rendered":"Common conflict in Plesk: the Allowed memory size of X bytes exhausted (tried to allocate Y bytes)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Post Date:<\/strong> July 25, 2019 <br><strong>Last Updated:<\/strong> October 28, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to fix the <strong>Plesk allowed memory size error<\/strong> on Linux servers. This issue occurs when Plesk&#8217;s PHP back-end exceeds its configured memory limit, resulting in blank pages, failed operations, or PHP fatal errors. By increasing the panel&#8217;s <code>memory_limit<\/code> and restarting the required services, you can resolve the <strong>Plesk allowed memory size error<\/strong> and restore normal panel operations.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16384 bytes)\nERROR: Out of memory (allocated 23866324) (tried to allocate 12997459 bytes)\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The two numbers differ from case to case. The first is the current limit, and the second is the amount of memory the failing step asked for. It commonly appears when you try to extract a large file in the Plesk control panel, open a very large database table, view big log files, or list a long mail queue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The fix is to raise the Plesk memory_limit in the panel&#8217;s own <code>php.ini<\/code> and restart two services. The original guide had that right. This update adds a way to confirm you&#8217;re editing the right setting, a backup step, and sensible values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you fix the allowed memory size error, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to the Plesk server with root privileges<\/li>\n\n\n\n<li>Plesk on Linux (the steps for Plesk on Windows use a different file path)<\/li>\n\n\n\n<li>A rough idea of how big the file or table is that triggered the error<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Architecture<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Plesk control panel is itself a PHP application. It runs on its own PHP engine, <code>sw-engine<\/code>, behind Plesk&#8217;s own web server, <code>sw-cp-server<\/code><\/li>\n\n\n\n<li>That PHP engine reads its own configuration file, <code>\/usr\/local\/psa\/admin\/conf\/php.ini<\/code>, which is completely separate from the PHP settings your websites use<\/li>\n\n\n\n<li>When a panel task needs more memory than <code>memory_limit<\/code> allows, PHP stops it with the allowed memory size error<\/li>\n\n\n\n<li>The engine reads <code>php.ini<\/code> only when it starts, so a change has no effect until you restart the services<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The image below shows how the allowed memory size error happens inside Plesk. For more detail, see Plesk&#8217;s own article on <a href=\"https:\/\/support.plesk.com\/hc\/en-us\/articles\/12377847129495-Operations-in-Plesk-fail-Allowed-memory-size-of-X-bytes-exhausted-tried-to-allocate-Y-bytes\" target=\"_blank\" rel=\"noopener\">this error<\/a> and PHP&#8217;s reference for <a href=\"https:\/\/www.php.net\/manual\/en\/ini.core.php#ini.memory-limit\" target=\"_blank\" rel=\"noopener\">memory_limit<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart-1024x683.png\" alt=\"\" class=\"wp-image-12550\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart-1024x683.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart-300x200.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart-768x512.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart-272x182.png 272w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Plesk-Memory-Limit-Error-Fix-Flowchart.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Fix the Plesk Allowed Memory Size Error<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Confirm the Error Comes from Plesk Itself<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check Plesk&#8217;s panel log for the error:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo tail -n 50 \/var\/log\/plesk\/panel.log\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Look at the file path in the error line. If it points into Plesk&#8217;s own folders, such as <code>\/usr\/local\/psa\/<\/code> or <code>\/opt\/psa\/<\/code>, the allowed memory size error is coming from the panel and this guide applies.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> If the path points to a website under <code>\/var\/www\/vhosts\/<\/code>, the problem is that site&#8217;s own PHP limit. Change it in Plesk under <strong>Domains \u2192 your domain \u2192 PHP Settings<\/strong> instead. Editing the panel&#8217;s <code>php.ini<\/code> won&#8217;t affect it.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">2. Check the Current Value and Back Up the File<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">grep memory_limit \/usr\/local\/psa\/admin\/conf\/php.ini\nsudo cp -a \/usr\/local\/psa\/admin\/conf\/php.ini \/usr\/local\/psa\/admin\/conf\/php.ini.bak\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. Increase the Plesk memory_limit<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the file in an editor:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo vi \/usr\/local\/psa\/admin\/conf\/php.ini\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Find the <code>memory_limit<\/code> line and raise it, for example:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">memory_limit = 512M\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Plesk&#8217;s own examples use 512M for general cases. For a task that handles a very large file or table, set it higher than the size of that object. The <code>memory_limit<\/code> is a per-request ceiling, not memory reserved up front, but don&#8217;t set it beyond what your server can realistically provide.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Restart the Plesk Services<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">service sw-engine restart\nservice sw-cp-server restart\n<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Restart both. A common reason for &#8220;I changed it but nothing happened&#8221; is restarting only one service, or none, since the change is read only when the services start.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">5. Retry the Operation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Repeat the action that failed, such as extracting the large file. The allowed memory size error should be gone. To confirm the new limit is in place:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">grep memory_limit \/usr\/local\/psa\/admin\/conf\/php.ini\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting the Plesk Allowed Memory Size Error<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If the <strong>Plesk allowed memory size error<\/strong> continues after increasing the memory limit, verify that you edited the correct panel configuration file. Check the Plesk panel logs for additional PHP errors and confirm that both <code>sw-engine<\/code> and <code>sw-cp-server<\/code> have restarted successfully. If the error originates from a website rather than the Plesk panel, update that domain&#8217;s PHP settings instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the allowed memory size error continues, check these:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>You didn&#8217;t restart both services.<\/strong> Run both restart commands from Step 4 again<\/li>\n\n\n\n<li><strong>The number in the error is still the old limit.<\/strong> The change isn&#8217;t being read. Recheck the file and the value<\/li>\n\n\n\n<li><strong>The error is from a website, not the panel.<\/strong> Look at the file path, as described in Step 1, and use the domain&#8217;s PHP Settings instead<\/li>\n\n\n\n<li><strong>A scheduled task fails with the same message.<\/strong> Add the limit to the command itself, for example <code>-d memory_limit=128M<\/code> after the PHP command in the task<\/li>\n\n\n\n<li><strong>The value goes back to the default later.<\/strong> Plesk&#8217;s article on this error describes a way to make the setting persistent. Check it if the limit reverts after an update or maintenance<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To fix the allowed memory size error in Plesk, confirm it comes from the panel&#8217;s own PHP, back up and edit <code>\/usr\/local\/psa\/admin\/conf\/php.ini<\/code> to raise the Plesk memory_limit, then restart both <code>sw-engine<\/code> and <code>sw-cp-server<\/code>. Retry the failed operation, and use a higher value only as large as the task really needs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Does this change the allowed memory size for my websites?<\/strong> No. This file controls only Plesk&#8217;s own panel. Each website&#8217;s PHP limit is set separately under <strong>Domains \u2192 PHP Settings<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How high should I set the allowed memory size?<\/strong> 512M is a common starting point. For a very large file or table, go above the size of that object, then lower it again if you like once the task is done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Why do I need to restart two services?<\/strong> <code>sw-engine<\/code> is the panel&#8217;s PHP engine and <code>sw-cp-server<\/code> is its web server. Both need to pick up the new configuration, so restart them both.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Does the same file path apply on Windows?<\/strong> No. On Windows, the panel&#8217;s configuration is in the <code>admin\\conf<\/code> folder inside the Plesk installation directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What causes the Plesk allowed memory size error?<\/strong>The Plesk allowed memory size error occurs when a panel operation requires more memory than the configured PHP <code>memory_limit<\/code> allows. Increasing the limit to an appropriate value can help resolve the issue.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/php-info-page-is-not-working\/\" target=\"_blank\" rel=\"noreferrer noopener\">PHP info page is not working<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/downgrade-php-5-3-to-5-2-in-centos-6\/\" target=\"_blank\" rel=\"noreferrer noopener\">Downgrade PHP 5.3 to 5.2 in centos 6<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to Our Technology Experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Managing Plesk servers or fixing recurring panel errors? Our team can help with Plesk administration, PHP and server tuning, and ongoing hosting support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\">Connect with our technology experts.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: July 25, 2019 Last Updated: October 28, 2026 Introduction This guide explains how to fix the Plesk allowed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13885,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1019],"tags":[700,701],"class_list":["post-4957","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-aws","tag-memory-eradication","tag-plesk-server","psol-cat-cloud-aws"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1hX","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/07\/Fix-Plesk-Memory-Size-Errors-1.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4957"}],"version-history":[{"count":3,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4957\/revisions"}],"predecessor-version":[{"id":13892,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4957\/revisions\/13892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13885"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4957"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4957"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}