douwudie8060 2011-03-13 22:21
浏览 85
已采纳

“致命错误:x字节允许的内存大小耗尽(试图分配y字节)”的含义“?

(This is a very frequent error, but couldn't find the meaning.)

Fatal error: Allowed memory size of x bytes exhausted (tried to allocate y bytes)

I have some questions:

  1. This is obviously an out-of-memory error, but what does it means in Layman's terms?
  2. Is it possible to know some information (like server's RAM) from x?
  3. What about y? Sometimes it is a two-digits number.

Thanks.

  • 写回答

3条回答 默认 最新

  • duanluanlang8501 2011-03-13 22:28
    关注
    1. It means that the memory used by the PHP script exceeded the value of the memory_limit configuration option. Note this may or may not agree with what the operating system thinks the memory usage of the script is at the time of the error.
    2. x gives you the value of the memory_limit configuration option. You can also assume that the server has at least enough virtual memory to handle the limit, but that's about it.
    3. No, y is just the size of the straw that finally broke the camel's back.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?