Page 1 of 1

Memory limit issue in php

Posted: Thu May 21, 2009 4:49 am
by sangaiah
Hi ,

I am getting the following error.

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10240 bytes)

To overcome the above error , i thought of increasing memory heap size by changing the "memory_limit" (128M to 256M) in php.ini file.

Can any one please tell me it will create any causes like memory leak, etc...?

Thanks,
Sangaiah

Re: Memory limit issue in php

Posted: Thu May 21, 2009 6:01 am
by jaoudestudios
There are 2 places to increase the php memory size. Dont forget to restart apache afterwards! Full restart is probably better than a graceful.