ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Memory Issue with EE 2.2.2

September 09, 2011 9:35pm

Subscribe [4]
  • #1 / Sep 09, 2011 9:35pm

    djensen

    10 posts

    I recently installed EE 2.2.2 (build date 20110801) on a site with the following modules:

    * Structure
    * Calendar (Solspace)
    * SuperSearch
    * CartThrob
    * AJWDataGrab

    All was working fine until I added a CartThrob tag to a template to display the cart sub total in the header - I was getting PHP Memory errors (server memory for PHP set to 32MB). I tested adding/removing various tags from the template and discovered that if I had both Calendar:Events and CartThrob tags on the same page, the page would crash and I’d get the error that I was over the PHP Memory limit.

    I turned on output profiling and template debugging and discovered that my page was hovering around 27-28MB of memory, even with only a single channel:entries tag (and using the disable=“categories|member_data” parameter). Adding in both the CartThrob tag and the Calendar:Entries tag pushed the page over 32MB. To further test, I created a separate template group and with basic CSS/JS and a single EE tag, the page was around 25MB.

    In the Control Panel, I ran the AJWDataGrab module to import/update some entries and I again saw the memory error, pointing to files in other unrelated modules, so I uninstalled the other modules one by one (SuperSearch, CartThrob and Calendar) until I could successfully run the DataGrab module.

    I did a fresh install of EE 2.2.2 with a single channel, a single entry, and a very basic template with no CSS or JS. The page was loading at 14MB memory, which seems excessive.

    For comparison, I installed EE 2.1.3, installed all the modules listed above, copied over all my channels, custom fields, entries, and templates. The page loaded in at 3.9MB.

  • #2 / Sep 09, 2011 9:53pm

    Marcus Neto

    1005 posts

    I’ll take a look at the information you sent and get back with you.

  • #3 / Sep 09, 2011 9:54pm

    dsoneil

    11 posts

    My config is similar with EE 2.2.2 and:

    * Structure
    * Solspace User
    * Solspace Tag
    * Low Search
    * P&T Assets

    I have BrilliantRetail installed but it is not running on any of the pages that are running high on memory. As well as some of the standard modules / plugins that come with EE. My pages average 25 to 28MB.

    There’s actually another post on the forum discussing the issue. To recap, my hosting company rapped my knuckles because my site was sucking up a lot of memory. I setup an EngineHosting account and tested my site using a static IP address and it didn’t make a difference.

  • #4 / Sep 09, 2011 10:20pm

    djensen

    10 posts

    dsoneil - thanks for the tip to the other post on the forum about this issue. I hadn’t seen it in my previous searches.

    http://ellislab.com/forums/viewthread/196439/

  • #5 / Sep 11, 2011 9:23pm

    Sue Crocker

    26054 posts

    Hi, dfravel. In the grand scheme of things, 32M of PHP memory isn’t a lot. EngineHosting standardizes on 64M and MediaTemple GS on 99M. I use 64M in MAMP when testing.

    Can you up that memory requirement? We can’t help a lot about the amount of memory third party add-ons add to your site, you’d have to work with the third parties separately. Make sense?

  • #6 / Sep 12, 2011 11:08am

    djensen

    10 posts

    Thanks for your response Sue.

    I understand that I can increase the memory and avoid the memory overload, but my point is that the *same exact* site in 2.1.3 loads at 3.9MB (compared to over 32MB in 2.2.2).

  • #7 / Sep 12, 2011 11:38am

    Marcus Neto

    1005 posts

    I moved this to community help as I do believe that this is not an EE issue. I will spend some time with it today to see if we can figure out what is going on.

    Do you by any chance have a backup of the site on 2.1.3? I know you provided login credentials for the site on version 2.2.2.

    Also is this site live?

  • #8 / Sep 12, 2011 11:58am

    djensen

    10 posts

    Hi Marcus,

    The 2.1.3 site is not live yet as I’m developing it locally on MAMP (I also developed the 2.2.2 version locally but pushed it up so I could send you a link). I’ll try to get the 2.1.3 version pushed up and will PM you a link when it’s ready.

    In searching the forums, it appears that there are several other people seeing memory issues with the latest version, although the filename indicated in the error message changes as it depends on which file is being loaded at the time the server runs out of memory. Here are some of those posts:

    http://ellislab.com/forums/viewthread/199528/
    http://ellislab.com/forums/viewthread/196439/
    http://ellislab.com/forums/viewthread/195439/

  • #9 / Sep 12, 2011 12:48pm

    dsoneil

    11 posts

    I’ve been stripping down some of my pages on a duplicate site and Structure seems to be driving up the memory usage a fair amount. I’ll do some more digging when I have time.

  • #10 / Sep 13, 2011 7:36pm

    Marcus Neto

    1005 posts

    I have checked a couple of installs of EE that I just checked (2.1.3, 2.2.1, 2.2.2) and they were all within a few megabytes of each other. None of them were above 15MB. They all were displaying pages with content but not the same content (hence the slight differences). If you are noticing differences I would look to the modules/Add-Ons that you are using. Are they the same versions? Or did you upgrade them as part of the EE upgrade

    But this may be a moot point since as Sue mentioned unless you are using a really low budget host it should not be affecting you.

    If you really want to track down the issue then I would install EE with all of your add-ons and then disable the add-ons one by one to see which one is causing the drain. I am sure the dev would want to know.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases