Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Sometimes when I tried edit a node, I see this error:
[12-Aug-2010 18:30:59] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1048576 bytes) in /home2/mysite/public_html/site/sites/all/modules/boost/boost.module on line 2014
[13-Aug-2010 13:09:27] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 119 bytes) in /home2/mysite/public_html/site/sites/all/modules/boost/boost.module on line 2015
Any fix for that? My php memory limit is 128mb.
Thanks
Comment | File | Size | Author |
---|---|---|---|
#14 | boost-882568.patch | 999 bytes | mikeytown2 |
Comments
Comment #1
superfedya CreditAttribution: superfedya commentedFatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in /home2/mysite/public_html/site/sites/all/modules/boost/boost.module on line 3784
Comment #2
superfedya CreditAttribution: superfedya commentedmaybe it can helps to author:
http://codeigniter.com/forums/viewthread/143001/
Comment #3
mikeytown2 CreditAttribution: mikeytown2 commentedhmmm looking at the code on those lines, it will be hard to fix. Boost is trying to use about a megabyte of ram for array modifications according to the errors. The link you posted (XML-RPC) has nothing to do with the code in question (array manipulation). What I could do is not use batch processing; it would be a lot slower but it won't use up as much ram. I would look elsewhere, because something is using up a bunch of your ram & boost appears to be the straw that broke the camels back.
Comment #4
superfedya CreditAttribution: superfedya commentedAnd this problem appears recently, before everything was OK.
[16-Aug-2010 10:15:20] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /home2/mysite/public_html/site/sites/all/modules/boost/boost.module on line 2001
Comment #5
mikeytown2 CreditAttribution: mikeytown2 commentedwell it keeps choking on the boost_cache_kill function, trying to allocate small amounts of memory from what I can tell. What changed?
Comment #6
superfedya CreditAttribution: superfedya commentedWhat changed? My site became bigger. Installed some modules and switched to the FastCGI PHP + eAccelerator.
Modules:
Authcache
CacheRouter
Date
Organic groups
And it's happen more often, when I edit a node created by others authors.
Thanks
Comment #7
superfedya CreditAttribution: superfedya commentedNow I got this:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 526034 bytes) in /home2/mysite/public_html/site/includes/database.mysql-common.inc on line 41
Comment #8
mikeytown2 CreditAttribution: mikeytown2 commentedLike I stated before, something changed on your site and is eating up all the ram. Boost works with millions of nodes so I'm tempted to say look somewhere else for the issue...
Comment #9
superfedya CreditAttribution: superfedya commentedok, thanks. but there is a way, to look the ram usage on shared hosting?
Comment #10
mikeytown2 CreditAttribution: mikeytown2 commentedBest bet is to setup the site local & run xdebug on it.
Guessing your using xampp so this guide should be helpful
http://unitstep.net/blog/2009/01/26/getting-xdebug-to-work-with-apachexa...
Comment #11
Marko B CreditAttribution: Marko B commentedThink this is similar / related to
http://drupal.org/node/936422#comment-3633892
Comment #12
Marko B CreditAttribution: Marko B commentedComment #13
mikeytown2 CreditAttribution: mikeytown2 commentedcreated an issue with views #988680: Memory leak with $view->pre_execute() & $view->attach_displays() and looking for a work around atm.
Comment #14
mikeytown2 CreditAttribution: mikeytown2 commentedComment #15
mikeytown2 CreditAttribution: mikeytown2 commentedcommitted this change
Comment #16
v1p3r1c3 CreditAttribution: v1p3r1c3 commentedHello Mikey
I got this error after applying the patch.
patch -b < boost-882568.patch
patching file boost.module
Hunk #1 FAILED at 1327.
1 out of 1 hunk FAILED -- saving rejects to file boost.module.rej
Comment #17
mikeytown2 CreditAttribution: mikeytown2 commentedpatch is for the dev version of boost; and if your running the latest dev, it already has it committed.