Portal Home > Knowledgebase > Articles Database > Fatal error: Allowed memory size of 134217728 bytes exhausted
Fatal error: Allowed memory size of 134217728 bytes exhausted
Posted by ttgt, 04-05-2012, 09:29 AM |
Hi,
i install a new centos/cpanel server,
i restore some accounts and get "Fatal error: Allowed memory size of 134217728 bytes exhausted......" for each account no matter how do i modify the ram value,
then,i try to install a new phpbb,it also show with this issue,
do you ever get such issue ?
thanx
|
Posted by Patrick, 04-05-2012, 09:53 AM |
What is your memory_limit set to under php.ini? You may need to double it, often that is the cause for the error you are receiving. If you're not sure where the php.ini is, you can find the location by logging into SSH and typing:
php -i | grep php.ini
... if it's 128M raise it to 256M, etc.
|
Posted by KMyers, 04-05-2012, 09:55 AM |
Hello,
This actually means your server/vps is using all of the memory allocated to it. May I ask the total memory in the server/vps
|
Posted by ttgt, 04-05-2012, 09:55 AM |
i set it as unlimit (-1) now,still get the error.thanx
|
Posted by ttgt, 04-05-2012, 09:56 AM |
Hi,it is 4GB dedicated server and no-running site.thanx
|
Posted by ttgt, 04-05-2012, 09:56 AM |
Hi,it is my server now
root@server [/]# free
total used free shared buffers cached
Mem: 4007760 3580152 427608 0 300392 2713188
-/+ buffers/cache: 566572 3441188
Swap: 8193016 232 8192784
thanx
|
Posted by Patrick, 04-05-2012, 09:58 AM |
and the memory_limit under PHP is set to?
php -i | grep memory_limit
|
Posted by ttgt, 04-05-2012, 10:00 AM |
Hi,
root@server [/]# php -i | grep memory_limit
memory_limit => -1 => -1
thanx
|
Posted by ArturasLIX, 04-06-2012, 02:30 AM |
php -i being run from root shows settings for root only. Perhaps there are custom settings for those accounts. Try to create file with phpinfo() function on those account to check real memory_limit setting.
|
Posted by ttgt, 04-06-2012, 02:54 AM |
because i install mysql4.0,im not sure if it can not integrate with php well,it show with "memory_limit -1 -1"
thanx
|
Posted by ssfred, 04-09-2012, 02:27 AM |
May be an issue with custom themes or plugins. Please disable them and then check if the issue persists.
|
Posted by locke815, 04-09-2012, 02:52 AM |
Just ask your hosting provider to increase your php memory limit and it will be ok.
|
Posted by madaboutlinux, 04-09-2012, 06:48 AM |
If changing the memory_limit values does not make any difference, it is high likely that Suhosin extension is enabled on the server which prevent scripts from setting the memory limit beyond what it started with or as per the defined by suhosin.memory_limit value.
If Suhosin is enabled on the server, set the value of suhosin.memory_limit to 256MB and then increase the memory_limit value for the scripts.
|
Posted by kevinnivek, 04-09-2012, 01:06 PM |
i sometimes see this error if the php/apache log file exceeds the allocated log file size that is allowed.
Clearing out the log files or disabling logging by apache altogether usually fixes this.
|
Posted by pititis, 04-12-2012, 10:34 AM |
From php.net:
The point here is why the memory is exhausted, so be careful changing this value because maybe the script isn't working well. Try to find what is causing this issue.
Cheers
|
Add to Favourites Print this Article
Also Read
Fdisk error? (Views: 723)