Jump to content

Fatal error: Out of memory


Recommended Posts

Posted

Anyone know the typical cause of this type of error:

Fatal error: Out of memory (allocated 32505856) (tried to allocate 3996 bytes) in........


Thanks in advance for any help.

Posted

Do you have your own VPS/Dedicated Server?

If so, edit your php.ini file. If you have cPanel License and WHM on Linux, login to root, and type in the search box at the top left "php". Or find "Service Configuration", and click "PHP Configuration Editor". Once your in the PHP Configuration Editor, click "Advanced Mode", and find "memory_limit". Once you have found this setting change it to 128M (recommended for IPB).

If you do not have access to do this, contact your host (if your on a hosting provider).

Hope this helps. :smile:

Posted

Do you have your own server (VPS or dedicated), or are you on shared hosting? PHP "Out of memory" errors usually mean that the host server is out of RAM and cannot allocate enough to process your request. Raising the PHP memory limit to 128 MB as Im#NuMBeR1 suggested might help, but I have run IPB with no issues on a shared host that had a 64 MB limit before. If the errors are sporadic, it's more likely that the host server is exhausting its memory.

If you're on shared hosting, some other site on the server may be using more than its fair share of resources and you'll want to get in touch with your hosting company over it. If you have your own server, check to see if there are any zombie processes that do not terminate and eat up RAM. Depending on your hosting company's level of management, you might be able to ask them to troubleshoot it for you.

Posted

Do you have your own server (VPS or dedicated), or are you on shared hosting? PHP "Out of memory" errors usually mean that the host server is out of RAM and cannot allocate enough to process your request. Raising the PHP memory limit to 128 MB as Im#NuMBeR1 suggested might help, but I have run IPB with no issues on a shared host that had a 64 MB limit before.



If you're on shared hosting, some other site on the server may be using more than its fair share of resources and you'll want to get in touch with your hosting company over it. If you have your own server, check to see if there are any zombie processes that do not terminate and eat up RAM. Depending on your hosting company's level of management, you might be able to ask them to troubleshoot it for you.


Not necessarily. Most of the time, the "Out of Memory" error usually means that the host server's set memory_limit has been reached, or exceeded the amount set for accounts on that server. Most servers with less than 8GB RAM with hosting accounts on set their memory_limit to a figure like 18M or something. If he has his own Dedicated or VPS, he should change the memory limit in the php configurator to 128M.
Posted

Thanks all. It is shared, and they have php ini memory limit set to 64. In case others reach this issue and find this thread, I have updated the .htacess file to increase this limit on my "account" so to speak. I've boosted it to 250M:


php_value memory_limit 250M

Posted

Thanks all. It is shared, and they have php ini memory limit set to 64. In case others reach this issue and find this thread, I have updated the .htacess file to increase this limit on my "account" so to speak. I've boosted it to 250M:




php_value memory_limit 250M


Make sure you notify your host that you have done that. In their eyes they could look at that as if you've breached the their servers php security.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...