Memory limit issue in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sangaiah
Forum Newbie
Posts: 6
Joined: Wed Apr 22, 2009 2:30 am

Memory limit issue in php

Post 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
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Memory limit issue in php

Post 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.
Post Reply