Strange error on increasing memory limit

2019-07-14 03:13发布

问题:

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... :)