Fatal error: Out of memory (allocated ...) (tried to allocate ... bytes) not due to memory_limit setting
Posted
by
Lorenz Meyer
on Server Fault
See other posts from Server Fault
or by Lorenz Meyer
Published on 2013-11-01T16:31:02Z
Indexed on
2013/11/01
21:57 UTC
Read the original article
Hit count: 246
Since a few days, I get the following error on my server:
Fatal error: Out of memory (allocated 262144) (tried to allocate 393216 bytes)
Usually this error is due to a memory consumption that is exceeding the configured memory_limit, but in my case there is no relation. The memory_limit
is set to 128MB
, and in this case, we not even reach 1MB.
Also the server does not have a big load, in fact it is an intranet server, and there are just a few people conected to it.
System: Windows Server 2003, 1Go RAM, only 600 MB used. Apache 2.2.4 PHP 5.2.3
This error is appearing randomly. The memory limit reached also is randomly between a few kB to a few MB. Sometimes restarting Apache is required to get rid of the error, sometimes it disapears itself.
Restarting Apache or the entire server helps temporarily.
Where could this problem come from ? How could I narrow down the error source ?
© Server Fault or respective owner