解决Fatal error: Out of memory

今天打开某个VPS上的网站(基于wordpress程序构建),提示错误信息:Fatal error: Out of memory (allocated 22544384) (tried to allocate 77824 bytes) in /home/is36.com/demo/wp-admin/includes/template.php on line 612

解决方法:ssh到VPS,然后将http服务、mysql服务重启一次。

导致该问题的原因:wordpress是吃内存大户,如果服务器的内存被吃光,就会出现如上问题。

彻底解决该问题的方法就是:

  • 增加内存
  • 调整http服务、mysql服务的各项参数

上一篇: 解决建行网银问题:证书签名错误,参考代码:-10005
下一篇: EXCEL中的相对引用、绝对引用和混合引用定义

发表评论