Breadcrumb: Memory leak? Too many pages?
Permalink
Hi, I'm getting an issue on C5 install that is running the Core Language-tree feature. Recently, we placed a breadcrumb on each page.
When I'm logged-out, I don't seem to encounter any issues.
However, when I'm logged in and the in-context resources need to load, I started getting Fatal Errors: PHP is out of memory! Tries to allocate more than it has.
We made sure the memory limit was set to 128MB and got the same error, only it's memory limit was 128MB (obvoiusly). We upped the limit again to 256MB, not resolved... upped it to 512MB, and this time we got an Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
I'm very tempted to think there is a memory leak in one of the 3rd-party add-ons I'm using, OR it's one of the custom views I created for the core blocks. However...
I have traced the error back to a stack, which has an autonav with the breadcrumb template applied. Going to edit that stack also produces the 324 error. I simply can't get to that stack-edit page, nor any page that includes that particular stack. Removing the Editable Area that contains the breadcrumb resolves the 324 error... but then how does my client get the breadcrumb they asked for?
Could it be the autonav block itself that's leaking memory so badly to need more that 256MB? Is it just because it have "so many" pages (really not that many pages -- roughly 50) in my site? It's not done -- we're going to add 3 more languages, and the existing language sections aren't fully built-out yet, so I hope that's not the issue.
Encountered the problem on a 5.5.2.1 build, upgraded to 5.6.0.2 with no resolution of the issue. Yes, I backed up the pre-upgraded data/files.
I'd super-duper appreciate any advice on what coudl be happening with this install. We are using a number of add-ons, so it's entirely possible that one of them is messing with the system, but... the Autonav block? Really? I feel like something else must be the matter.
Thank you!
When I'm logged-out, I don't seem to encounter any issues.
However, when I'm logged in and the in-context resources need to load, I started getting Fatal Errors: PHP is out of memory! Tries to allocate more than it has.
We made sure the memory limit was set to 128MB and got the same error, only it's memory limit was 128MB (obvoiusly). We upped the limit again to 256MB, not resolved... upped it to 512MB, and this time we got an Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
I'm very tempted to think there is a memory leak in one of the 3rd-party add-ons I'm using, OR it's one of the custom views I created for the core blocks. However...
I have traced the error back to a stack, which has an autonav with the breadcrumb template applied. Going to edit that stack also produces the 324 error. I simply can't get to that stack-edit page, nor any page that includes that particular stack. Removing the Editable Area that contains the breadcrumb resolves the 324 error... but then how does my client get the breadcrumb they asked for?
Could it be the autonav block itself that's leaking memory so badly to need more that 256MB? Is it just because it have "so many" pages (really not that many pages -- roughly 50) in my site? It's not done -- we're going to add 3 more languages, and the existing language sections aren't fully built-out yet, so I hope that's not the issue.
Encountered the problem on a 5.5.2.1 build, upgraded to 5.6.0.2 with no resolution of the issue. Yes, I backed up the pre-upgraded data/files.
I'd super-duper appreciate any advice on what coudl be happening with this install. We are using a number of add-ons, so it's entirely possible that one of them is messing with the system, but... the Autonav block? Really? I feel like something else must be the matter.
Thank you!
If it is something to do with the stack and the autonav, you could perhaps replace the Global Area with a hardcoded autonav block. (I'm pretty sure it would be more efficient anyway).
See Jordan Lev's handy blog post on this: http://c5blog.jordanlev.com/blog/2012/04/hard-coded-autonav-options...
In particular, the hardcode of an autonav to be a breadcrumb is: