Fatal error: Out of memory, but I do have plenty of memory (PHP)

前端 未结 20 2657
情歌与酒
情歌与酒 2020-11-29 23:34

Since my question is getting longer and longer, I decide to re-write the whole question to make it better and shorter.

I run my website on dedicated server with 8GB

20条回答
  •  长情又很酷
    2020-11-30 00:18

    I know it's an old thread, but here's my experience getting it resolved.

    My server is a hosted service running Apache.

    My script crashed with out of memory at 6Mb, when my limit Was 256Mb - crazy, yeah?

    It is being called synchronously via an http callback, from javascript running on my client, and crashed after around 550 calls. After much time wasted with incompetent "Escalated Support" guys, my script now magically runs.

    They said all they did was to reset php.ini, but I checked the differences:

    No changes there that I can see that could have a bearing on an Out of Memory error.

    I suspect a memory leak in the web server which my "Escalated Support" guy is hiding under the guise of resetting the php.ini. And, really, I'm not a conspiracy theorist.

提交回复
热议问题