Fatal error: Allowed memory size of Xxxx bytes exhausted tried to allocate Yyyy bytes - drupal 5.x

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Sree's picture

i changed the memory limit in php.ini file, but the error message is popping up very frequently.
can any one let me know some other solution to this?

same post: http://drupal.org/node/131442

Comments

Memory limit.

RambabuKatta's picture

Increase the memory limit to a higher value than the existing and try...

The following is the link to webpage analyaer tool, which will analyse the memory size that is need by your application.
http://www.websiteoptimization.com/services/analyze/index.html
hope this helps :)

Regards,
Rambabu Katta

/Increase the memory limit

Sree's picture

/Increase the memory limit to a higher value/

how far can we increase the value?
more no of modules we use may require more amt of memory rt? so, whats the max limit that we can give?
what are the impacts of it?

As i said in my earlier post i already increased the memory to some higher value ....

anyway thanks for the link .....

Sree

*-*

beautifulmind's picture

Why don't you increase the memory limit in your .conf file or in .htaccess file?
If you do this in your .htaacess file, you don't even need to restat the webserver.

:)
Beautifulmind

Re: Fatal Error Bytes Exhausted

edub9's picture

What code would I place in my .htaccess file, sorry to ask but I am very much a Noob with .htaccess.

Thanks in advance.

Edub9

*_*

beautifulmind's picture

php_value memory_limit = "128M"

MEMORY LIMIT ON DREAMHOST PRIVATE SERVER PS ?

wwwoliondorcom's picture

MEMORY LIMIT ON DREAMHOST PRIVATE SERVER PS ?

Hello,

I set

ini_set('memory_limit', '150M');

in your sites/default/settings.php file

because 100M was not working anymore for a very large website, do you know what is the limit on DREAMHOST servers ?

Can you think of any problem if i set the limit to 200 or more to be safe in the future ?

Thanks.

*_*

beautifulmind's picture

You can set even 400M. Your host won't notice it ever!

Regards.

are you sure ?

wwwoliondorcom's picture

Thanks for reply, but are you sure ?

So do you know why it is set so low by Drupal if people don't meet problems when set higher ?

Thanks a lot.

*_*

beautifulmind's picture

Drupal ain't know what will be the size of your Drupal site. Its up to us to decide how much resources we should devote to the site.
And I'm pretty sure about setting any value for memory limit. You should use Drupal tweak module as well.

Regards.
[edit] typo

I copied a site to another host-Drupal 6.17

ss54's picture

Hi, I successfully copied a Drupal site to another host where it worked normally. But After I installed Backup_Migrate Module, I began to get the same Fatal error related to the memory issue. I followed your advice by increasing the memory from 96M to 250M and I used your statement php_value memory_limit = "250M" at the top of of the .htaccess file. It has not fixed it yet. I cannot see the site anymore. Can you please help me?

D6 FTW

saranggani78's picture

Running a new subscription site with at least 10-20 content types and at least 50 modules enabled including views, ctools, panels, context, features. i set php value memory limit = 512M.

Use the file seeting.php

ss54's picture

increase your memory to about 128 inside your settings.php--see my website at http://drupal54.com

No more trouble with memory

ss54's picture

I am no longer having troubles with memory shortages, because I increased the memory in the file settings.php. Thanks a lot.