Posted by jundolor on November 12, 2007 at 2:01am
Hello all:
I'm getting the fatal error below when I click Administer:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 17 bytes) in /home/varsinet/public_html/includes/install.inc on line 41
The last thing I remembered before the fatal error occurred was to activate Upload in administer>>site building>>modules.
Any assistance will be much appreciated...
Many thanks, Jun D!
Life is like a box of chocnut, you never know if its durog or not

Comments
Memory allocation
The error is memory allocation. I've come across a couple of treads that discusses the problems:
http://drupal.org/node/131442
http://groups.drupal.org/node/3431
FYI, Jun D!
Life is like a box of chocnut, you never know if its durog or not
you exhausted your memory_limit
this means you exhausted your configured PHP memory_limit. edit your php.ini and look for the memory_limit setting and increase its value. you might want to increase max_execution_time, max_input_time too
ohh .. you have a lot modules installed out there!
Any guideline on setting memory limits?
Thanks for the feedback. I was checking some treads and got advises that its a matter of setting the memory limit in php.ini. I just wonder if there would be a guideline on setting memory limits e.g. 1+MB for every module activated.
Looks like I will need to turn off some modules as well.
Life is like a box of chocnut, you never know if its durog or not
use top
if youre using a (u|li)(ni|ux) box, you can use the top utility to see how much memory your php or httpd(if php was installed as a module w/c is most likely) process consumes. then you can turn on/off one module at a time and observe how much memory it increased/decreased.
ciao
follow your processes
there is no convention for the memory allocation on php, (like swap=2*physical ram). So follow your processes such that you won't use up all your resources. Modules do different things so they also consume different resources. since we are in drupal and it is really built to be like a lego system, enable first modules that are relevant to your project and adding some as you progress.
By default, php.ini allocates some 8MB i think.
what is your setup?
Are you running your site locally or on a host?
If you are running locally, what are you using? WAMP or LAMP?
http://en.wikipedia.org/wiki/Web-Developer_Server_Suite
If you are running on a hosted server, contact your support team to look a your php.ini setting if you don't have shell access. They could probably fix this for you.
Also look at what version of PHP you are using, some newer modules require php5 and other components to work properly.
my bad
Sorry, looks like you are running from a host.