Php memory limit

I make a request for a wave, the witch worked fine for weeks, and now she returns this error:

Allowed memory size 262144 bytes exhausted (tried to allocate 76889 bytes)

The weird part is that I checked php.ini and phpinfo and both say the memory limit is

memory_limit 1028M

I also tried

ini_set("memory_limit","400M"); 

At the top of the file, to be sure, but still, get this error.

This happens both on development servers and in production.

+4
source share
1 answer

DaveRandom nailed it. Sukhozin (I didn’t even know that we installed it) caused the problem by over-protecting the server.

[forums.cpanel.net/f5/php-memory-limit-problem-69715.html] [1] - TL; DR is caused by sukhozin. - DaveRandom

Thanks everyone!

[1]: http://forums.cpanel.net/f5/php-memory-limit-problem-69715.html

A UPS that somehow fixes the error in this part, but the other part of the webapp throws the same error.

I have no idea what to look at. he says that the memory limit is 1028M in php info, if I change it through ini_set, a new value appears using ini_get, and now I have configured suhosin to simulate. that somehow fixed the first problem, but now it reappeared.

+1
source

All Articles