{"id":1011,"date":"2024-06-05T20:33:25","date_gmt":"2024-06-05T12:33:25","guid":{"rendered":"https:\/\/cn.raksmart.com\/blog\/host\/4145.html"},"modified":"2024-06-05T20:33:25","modified_gmt":"2024-06-05T12:33:25","slug":"%e8%99%9a%e6%8b%9f%e4%b8%bb%e6%9c%ba%e4%bc%9a%e5%9b%a0%e4%b8%bamemory-size%e5%af%bc%e8%87%b4%e6%89%80%e7%94%a8%e8%b5%84%e6%ba%90%e5%8f%97%e9%99%90","status":"publish","type":"post","link":"https:\/\/cn.raksmart.com\/blog\/%e6%8a%80%e6%9c%af%e6%95%99%e7%a8%8b\/%e4%ba%91%e6%9c%8d%e5%8a%a1-%e6%8a%80%e6%9c%af%e6%95%99%e7%a8%8b\/xnzj\/1011.html","title":{"rendered":"\u865a\u62df\u4e3b\u673a\u4f1a\u56e0\u4e3aMemory-size\u5bfc\u81f4\u6240\u7528\u8d44\u6e90\u53d7\u9650"},"content":{"rendered":"<div class=\"entry-content e-content\" itemprop=\"description articleBody\">\n<p><strong>\u865a\u62df\u4e3b\u673a<\/strong>\u56e0\u4e3a\u662f\u5171\u4eab\u73af\u5883\uff0c\u6240\u4ee5\u4e3b\u673a\u63d0\u4f9b\u5546\u5c31\u4f1a\u5728\u6bcf\u53f0<strong><a href=\"https:\/\/cn.raksmart.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u865a\u62df\u4e3b\u673a\uff08\u5728\u65b0\u7a97\u53e3\u6253\u5f00\uff09\">\u865a\u62df\u4e3b\u673a<\/a><\/strong>\u4e0a\u8bbe\u5b9a\u4e00\u5b9a\u7684\u503c\uff0c\u6765\u7ea6\u675f\u89c4\u8303\u6bcf\u4e2a\u7528\u6237\u6240\u80fd\u4f7f\u7528\u7684\u5185\u5b58\u3001\u6d41\u91cf\u6216CPU\u7684\u4e00\u5b9a\u7684\u503c\u3002\u6240\u4ee5\u7528\u6237\u5982\u679c\u8d85\u8fc7\u4e86\u8fd9\u4e2a\u8bbe\u5b9a\u7684\u503c\uff0c\u5c31\u4f1a\u5728\u51fa\u73b0\u5728\u52a0\u8f7d\u7f51\u9875\u7684\u65f6\u5019\u7f51\u7ad9\u9875\u9762\u8fd8\u6ca1\u6709\u52a0\u8f7d\u5b8c\u6210\uff0c\u5c31\u4f1a\u505c\u6b62\u52a0\u8f7d\u3002<\/p>\n<p>\u8fd9\u65f6\u67e5\u770b\u62a5\u9519\u4fe1\u606ferror_log\u4f1a\u51fa\u73b0\u5982\u4e0b\u7684\u62a5\u9519PHP Fatal error: Allowed memory size of 268435456 bytes exhausted<br \/>\n(tried to allocate 20480 bytes) in \/home\/doowifhc\/public_html\/wp-includes\/wp-db.php<br \/>\non line 1999<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b89\u88c5\u4e86cPanel\u9762\u677f\u7684<strong>\u865a\u62df\u4e3b\u673a<\/strong>\u51fa\u73b0\u7684\u8be5\u95ee\u9898\u7684\u89e3\u51b3\u601d\u8def\uff1a<\/p>\n<p>\u95ee\u9898\u63cf\u8ff0\uff1a\u5ba2\u6237\u6253\u5f00\u7f51\u7ad9\u65f6\u51fa\u73b0\u7f51\u7ad9\u56fe\u7247\u52a0\u8f7d\u4e0d\u5b8c\u5168\u7684\u95ee\u9898\u3002\u63a8\u8350\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/host\/867.html\">\u4e3a\u4ec0\u4e48\u5927\u5bb6\u559c\u6b22\u9009\u62e9\u865a\u62df\u4e3b\u673a\uff1f<\/a><\/p>\n<p class=\"has-text-color has-vivid-red-color\">\u89e3\u51b3\u601d\u8def\uff1a<\/p>\n<p>1.\u8f93\u5165\u57df\u540d\u6253\u5f00\u7f51\u7ad9\uff0c\u590d\u73b0\u4e86\u5ba2\u6237\u7684\u95ee\u9898\uff0c\u6709\u4e00\u534a\u7684\u9875\u9762\u56fe\u7247\u672a\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<p>2.\u67e5\u770b\u4e86\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u7684 log <\/p>\n<p>[30-Nov-2020 03:20:56 UTC] PHP Fatal error:<br \/>\nAllowed memory size of 268435456 bytes exhausted (tried to allocate 20480<br \/>\nbytes) in \/home\/doowifhc\/public_html\/wp-includes\/wp-db.php on line 1999<\/p>\n<p>\u95ee\u9898\u5b9a\u4f4d: Allowed memory size \u4e0d\u591f\u7528<\/p>\n<p class=\"has-text-color has-vivid-red-color\">\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p>\u6253\u5f00cPanel \u2014&gt; \u7f16\u8f91PHP.ini\u6587\u4ef6<\/p>\n<p>\u9ed8\u8ba4\u662f256M\u7684\u6211\u4fee\u6539\u4e3a512M<\/p>\n<p>\u7f51\u7ad9\u9996\u9875\u53ef\u4ee5\u6253\u5f00\u3002<\/p>\n<p>\u4f46\u8fd8\u662f\u9700\u8981\u6ce8\u610f\uff0c<strong>\u865a\u62df\u4e3b\u673a<\/strong>\u6bd5\u7adf\u662f\u5171\u4eab\u73af\u5883\uff0c\u6240\u4ee5\u5728\u4e3b\u673a\u6027\u80fd\u4e0a\u65f6\u4f1a\u6709\u4e00\u5b9a\u9650\u5236\u7684\uff0c\u6240\u4ee5\u867d\u7136\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u8fbe\u5230\u53ef\u662f\u4f7f\u7528\u7684\u6027\u80fd\uff0c\u4f46\u4e0d\u5c11\u865a\u62df\u4e3b\u673a\u63d0\u4f9b\u5546\u662f\u4e0d\u5141\u8bb8\u7528\u6237\u5360\u7528\u8fd9\u4e48\u5927\u7684\u5185\u5b58\u7684\uff0c\u6240\u4ee5\u5982\u679c\u4f60\u7684\u7f51\u7ad9\u9700\u8981\u7ecf\u5e38\u8c03\u6574\u914d\u7f6e\u6765\u8fbe\u5230\u7f51\u7ad9\u7684\u6b63\u5e38\u52a0\u8f7d\uff0c\u5efa\u8bae\u53ef\u4ee5\u66f4\u6362<strong>\u865a\u62df\u4e3b\u673a<\/strong>\u4ee5\u4e0a\u7684\u4e3b\u673a\u4e86\u3002\u66f4\u591a\u5185\u5bb9\u53ef\u4ee5\u53c2\u8003\u4e86\u89e3<a href=\"https:\/\/cn.raksmart.com\/blog\/host\/xnzj\/677.html\">\u865a\u62df\u4e3b\u673a\u7684\u9650\u5236\u6709\u54ea\u4e9b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u865a\u62df\u4e3b\u673a\u56e0\u4e3a\u662f\u5171\u4eab\u73af\u5883\uff0c\u6240\u4ee5\u4e3b\u673a\u63d0\u4f9b\u5546\u5c31\u4f1a\u5728\u6bcf\u53f0\u865a\u62df\u4e3b\u673a\u4e0a\u8bbe\u5b9a\u4e00\u5b9a\u7684\u503c\uff0c\u6765\u7ea6\u675f\u89c4\u8303\u6bcf\u4e2a\u7528\u6237\u6240\u80fd\u4f7f\u7528\u7684\u2026 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[109],"class_list":["post-1011","post","type-post","status-publish","format-standard","hentry","category-xnzj","tag-109"],"_links":{"self":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/comments?post=1011"}],"version-history":[{"count":0,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1011\/revisions"}],"wp:attachment":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/media?parent=1011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/categories?post=1011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/tags?post=1011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}