i am getting this message;
Fatal error: Out of memory (allocated 2097152) (tried to allocate 325524 bytes) in /home/mysite/public_html/includes/bootstrap.inc on line 512

how can i resolve this... i tried deleting modules, i tried deleting themes... but this doesn't get it working. so this is a scream for HELP, anyone please

ps: i searched in drupal.org but could not find a solution, i am using drupal 5 and i am ready to list all the modules that i have

Comments

yelvington’s picture

nevets’s picture

In the handbook see: http://drupal.org/node/207036 though you probably want at least 24meg (I would try 32Meg) instead of the 16Meg shown.

pnlnl’s picture

well i had my site running well enough and under 32 megs of php memory, today, suddenly i started to get database connection errors, so i asked how to mask this page from my visitors and didn't get a response until, anyway that's not issue, now the site is down and it is giving me this message, and i know that php memory may not be the issue here,,, i have tried everything from deleting modules, image files, themes, i even ran the database repair script in CPanel but nothing of this seems to resolve my problems, any suggestions....??

yelvington’s picture

First step is to verify that the memory settings are what you think they are. Create a file named phpinfo.php containing one line:
<php phpinfo(); ?>
Hit that URL with your browser. It's possible that your hosting company has changed something.

pnlnl’s picture

well, i can see that even after setting the php memory limit to 40 megs violating my hosting provider limit(32 megs) i am still getting this error, here's the link maybe you can spot an error that i overlooked

ghankstef’s picture

See your my.cnf config file for mysql - you may need to increase memory there and restart mysql. Changing php memory won't help

pnlnl’s picture

i am on shared hosting, yesterday i requested to move to a vps, but it is going too much time.... is there a way to set it from the .htaccess file...
edit: i guess not, it is a mysql configuration after all
i guess that the only solution to my problem is to spam my service provider with emails until they fix the damn thing, sorry for my vocab... and thanks for your help.

pnlnl’s picture

anyway, this problem out of the way, now it's up to my host.... i still have one question:
how do i mask the "unable to connect to the database server" error page
AS I said earlier, when there is an error i know how to do, i ask you guys what i need, but i don't every visitor to get a lesson about it, so can anyone help in this? is it even possible?

ghankstef’s picture

which means if you are on shared hosting your only option may be to get on the phone with your hosting provider and work through it with them unless you can somehow edit my.cnf yourself.

You may want to make sure mysql query caching is on and set to 32 mb or so.

One thing that may help some that you can do is make sure Drupal page caching is on under site configuration -> performance.

In a pinch you could look at a static page caching module like Boost - I had mixed results with it myself though

Also I had an unable to connect error once and it turned out to be the mysql logs had run out of disk space. It was totally on the hosting side.

Good luck!