Understanding php “Out of memory” error

后端 未结 2 1675
清歌不尽
清歌不尽 2020-12-06 10:01

I can find lots of tutorials on how to overcome the out-of-memory error. The solution is: To increase the memory in the php.ini or in the .htaccess

相关标签:
2条回答
  • 2020-12-06 10:07

    It's exactly like you understood it.

    The limit is probably set at 32MB, you have already 32016932 bytes allocated and when php tried to allocate 25152 more bytes, the limit is exceeded thus the error message.

    You probably can see the line where the faulty allocation happened in your logs or near the error message on your screen.

    Good luck finding the culprit.

    0 讨论(0)
  • 2020-12-06 10:23

    I Always interpreted it like:

    Fatal error: Out of memory ([currently] allocated 32016932) (tried to allocate [additional] 25152 bytes)
    

    But good Question if there is a bulletproof explanation.

    0 讨论(0)
提交回复
热议问题