Strange error on increasing memory limit

折月煮酒 提交于 2019-12-24 03:42:16

问题


I am using a shared hosting environment and the default memory limit for PHP is 32M. I am facing some problems with Concrete5 setup.

When I try to sign into the admin panel of Concrete5, it gives memory limit error Allowed memory size of 33554432 bytes exhausted. So I increased the memory limit with ini_set('memory_limit', '128M') to 128M. After this I get an error that says:

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without 
sending any data.

I tried lowering the memory limit to 96M, 64M and some other values, but same error (ERR_EMPTY_RESPONSE) repeats.

What is this error, and why does it occur when I use ini_set()?


回答1:


As commented by Joachim Isaksson there is a flaw in older version (5.2.14) PHP that causes it to terminate. I upgraded the PHP version, and also increased the default memory_limit set by ulimit os call to 128M. this has resolved the error. Thanks guys... :)



来源:https://stackoverflow.com/questions/10394254/strange-error-on-increasing-memory-limit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!