I am running Drupal 6.13 and have not made any module updates or changes in the past few day and everything worked normally at the end of last week but today when I logged in as admin and tried to update some modules I got the following error message:

Fatal error: Out of memory (allocated 65273856) (tried to allocate 63 bytes) in /home/garp/public_html/sites/all/modules/views/includes/view.inc on line 1490.

Then I checked the php.ini file and memory_limit was set to 128M, Over the course of the day, my hosting company and I increase these values to the current limit of 288M. And I am still getting the memory errors when I try to open the modules section of the admin section, when I try save changes in the themes area, or try to empty the cache in the performance area in the site configuration section. Also, have made the changes in the sites/default/settings.php memory_limits, too. And, created an phpinfo file which shows 288m memory_limit, as well,

Also, the PHP/CGI/SSI limit of Apache server is 448 MB per process. I have a semi-dedicated package and currently using less that 20% of my bandwidth / server resources. Today, in search of an answer I have read most of the threads posted in this forum re: memory errors and have tried the suggested possible solutions and STILL getting the error message.

It looks like something on the setting of a script (not server wide) that's limiting the memory usage but I do not know where else to look.

Thanking you in advance for your help in this matter.

GarP

Comments

robotsguide’s picture

Did you check your .htaccess file?

GarP’s picture

No, not until now. Did not see anything regarding memory limits in the .htaccess file. Do I need to add a memory limit statement here?

Thanks for your help !! I'm starting to get a little "nuts" over this.

gausarts’s picture

Check this => http://drupal.org/node/542678, just in case you missed other settings.

Other possibility is your my.ini. Lots of info in d.o. Try using the search form :)

love, light n laughter

GarP’s picture

Wanted to let everyone know that our "out of memory" problem has been resolved by adding a phpmemory.php file declaring the initial memory.

Therefore, as of this morning, everything seems to be working normally, I can access the build/ module, themes, & block sections without getting the memory error.

Just an FYI - I can not take credit for solving this problem, the great people at www.downtownhost.com were the ones that came up with the solution. They spend HOURS working with me yesterday on this matter and had it resolved this morning before I had the time to logged back in. If you ever are looking for a web host service, check them out. I've been with them for over two years and their support is A+++.

Thanks to all of those that posted suggestion under this post as well as those in the past. All were very helpful in this process.

8) GarP

Finbarr’s picture

The way to do this is to open /sites/yoursite/settings.php and add a line
ini_set('memory_limit', '488MB');