分类
Web

解决 WordPress 内存耗尽错误

今天在安装了几个插件后,出现了 “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate X bytes) in /home /…/public_html/… the particular folder on line X” 的错误。因为,目前软言软语安装的插件很少,因此对出现这个问题感到有点儿奇怪。经过搜索研究,发现很多人升级到2.8后,都遇到过这个问题。在跟 Host 联系并修改了配置文件后解决了这一问题。这其中 Host 的办事效率还是让我很欣慰,5分钟之内就给了答复并将内存限制提高了10倍以上。


Wordpress Memory Issue

现提供一下解决此问题的几个方法:

  1. 联系主机提供商,要求增加内存使用上限。当然有的主机提供商很爽快,会答应要求,但有的也可能会拒绝你的请求。
  2. 禁用部分插件。 不要启用过多插件,一方面占用大量内存,另一方面也影响整体效率,尤其是在主机提供商无法满足你提出增加内存上限的要求时尤为重要。
  3. 在 wp-settings 中修改 define(‘WP_MEMORY_LIMIT’, ’32M’) 以满足你主机的需求,前提是你的主机提供商允许你使用更多的内存。
  4. 安装 WP-Memory-UsageWordPress Health System 来查看系统的运行状态。

推荐阅读

  1. More Memory For WordPress – More Information About WordPress @  WPENGINERR.com
  2. WordPress memory exhausted? Try this. @ Modern Street
  3. PHP Memory and WordPress @ NARFSTUFF
  4. WordPress 官方论坛中的相关讨论

最后也要感谢 WP-Table Reloaded 插件作者 Tobias Bäthge 提供的帮助。

“解决 WordPress 内存耗尽错误”上的256条回复

从善用佳软那边看到这个blog,来看后发现确实不错
支持一下,希望博主继续!

May I simply just say what a comfort to find someone that actually knows what they are talking about on the net. You actually realize how to bring a problem to light and make it important. More and more people should read this and understand this side of your story. I was surprised you aren’t more popular given that you most certainly possess the gift.|

Hello, Neat post. There is a problem together with your website in web explorer, would test this? IE still is the marketplace chief and a large component to other people will pass over your wonderful writing because of this problem.|

Hello, I do believe your website may be having internet browser compatibility problems. Whenever I look at your web site in Safari, it looks fine however, when opening in IE, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Aside from that, fantastic website!|

I was wondering if you ever thought of changing the layout of your website? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two images. Maybe you could space it out better?|

Aw, this was an extremely nice post. Finding the time and actual effort to produce a top notch article… but what can I say… I put things off a whole lot and never seem to get anything done.|

Hmm is anyone else having problems with the images on this blog loading? I’m trying to determine if its a problem on my end or if it’s the blog. Any feed-back would be greatly appreciated.|

This is really interesting, You are a very skilled blogger. I’ve joined your rss feed and look forward to seeking more of your wonderful post. Also, I have shared your website in my social networks!|

I was recommended this website by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You’re incredible! Thanks!|

Fantastic website you have here but I was wanting to know if you knew of any forums that cover the same topics talked about in this article? I’d really like to be a part of community where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks!|

hello!,I like your writing so much! proportion we keep in touch more approximately your post on AOL? I need a specialist on this space to solve my problem. Maybe that’s you! Taking a look forward to peer you. |

This design is spectacular! You certainly know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Excellent job. I really loved what you had to say, and more than that, how you presented it. Too cool!|

Awesome blog you have here but I was curious about if you knew of any user discussion forums that cover the same topics discussed here? I’d really love to be a part of community where I can get opinions from other experienced people that share the same interest. If you have any suggestions, please let me know. Thanks!|

Hello there! This is kind of off topic but I need some guidance from an established blog. Is it hard to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about making my own but I’m not sure where to start. Do you have any ideas or suggestions? Many thanks|

I know this if off topic but I’m looking into starting my own blog and was wondering what all is required to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very web smart so I’m not 100 sure. Any recommendations or advice would be greatly appreciated. Cheers|

I really like your blog.. very nice colors & theme. Did you create this website yourself or did you hire someone to do it for you? Plz reply as I’m looking to construct my own blog and would like to know where u got this from. kudos|

It’s truly very complex in this full of activity life to listen news on Television, so I just use web for that reason, and get the most up-to-date information.|

Hmm is anyone else having problems with the pictures on this blog loading? I’m trying to figure out if its a problem on my end or if it’s the blog. Any suggestions would be greatly appreciated.|

Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You clearly know what youre talking about, why throw away your intelligence on just posting videos to your site when you could be giving us something enlightening to read?|

Appreciating the commitment you put into your website and detailed information you offer. It’s nice to come across a blog every once in a while that isn’t the same out of date rehashed material. Excellent read! I’ve saved your site and I’m adding your RSS feeds to my Google account.|

hello there and thank you for your information – I have definitely picked up anything new from right here. I did however expertise some technical points using this website, as I experienced to reload the website a lot of times previous to I could get it to load properly. I had been wondering if your web host is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Well I am adding this RSS to my email and can look out for much more of your respective interesting content. Ensure that you update this again very soon.|

What i don’t understood is in reality how you are not really much more smartly-preferred than you might be now. You are so intelligent. You recognize thus considerably relating to this subject, made me personally consider it from a lot of varied angles. Its like women and men are not involved unless it is something to accomplish with Woman gaga! Your individual stuffs outstanding. At all times care for it up!|

What’s up every one, here every one is sharing these kinds of experience, so it’s fastidious to read this website, and I used to pay a visit this blog all the time.|

Hi my family member! I want to say that this article is amazing, great written and include approximately all important infos. I’d like to look extra posts like this .|

评论已关闭。