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.

EE template memory issues with host

May 02, 2012 12:18pm

Subscribe [3]
  • #1 / May 02, 2012 12:18pm

    Chris Arnold

    201 posts

    With a recent site launch, we’ve been having problems with Dreamhost killing page loads because of excessive RAM usage. They pasted us a few lines from their watcher script, and it showed some pages taking many seconds to load and using some 30mb+ of RAM. I couldn’t believe it, but upon opening debugging I do in fact see extremely large loads occurring. But I don’t know why.

    Even on the simplest pages, such as a news detail page, the memory usage is 30mb. Disable tag is in use. With or without it, I’m not seeing a change in the load. As I turn things off and on in that template I’m finding that, out of the 30mb,

    10mb is the entries tag pair itself
    3mb is in the footer embed (solspace super search)

    But that’s still leaving ~15mb+ of load just “there” without anything else on the page. I’ve also turned off the head, header, scripts, and anything else I could imagine using resources but nothing changes the issue.

    I initially started caching the homepage and a few other larger pages, but as soon as I noticed even the most basic page was showing the same symptoms, I wanted to get official EE feedback. Thanks in advance.

    The first few lines from the output:

    (0.000021 / 11.60MB) - Begin Template Processing -
    (0.000327 / 11.60MB) URI: news/detail/vendor-feature-ultrafabrics
    (0.000362 / 11.60MB) Path.php Template: /
    (0.000399 / 11.60MB) Retrieving Template
    (0.000427 / 11.60MB) Parsing Template URI
    (0.001580 / 11.61MB) Template Group Found: news
    (0.003019 / 11.61MB) Retrieving Template from Database: news/detail
    (0.005225 / 11.61MB) Template Found
    (0.006501 / 11.62MB) Retrieving Template from File
    (0.012775 / 11.94MB) Template Type: webpage
    (0.012837 / 11.94MB) Parsing Site Variables
    (0.012963 / 11.94MB) Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.013003 / 11.94MB) Snippets (Values): |||||||||||||||||||||||||FALSE|1|Client|default_site|vendor-feature-ultrafabrics
    (0.013934 / 11.95MB) Parse Date Format String Constants
    (0.013998 / 11.95MB) Parse Current Time Variables
  • #2 / May 03, 2012 10:35am

    Dan Decker

    7338 posts

    Hi Chris,

    Thanks for your question!

    Can you get me a complete template debug capture? From 0secs/0MB through to the end. Please include the template the the debug out put is from as well.

    I would love to see where the spike occurs.

    Cheers,

  • #3 / May 03, 2012 10:57am

    Chris Arnold

    201 posts

    The capture begins at the line I noted—11.60mb. Is there another way to see everything from 0?

  • #4 / May 03, 2012 11:07am

    Chris Arnold

    201 posts

    TEMPLATE DEBUGGING
    (0.000022 / 11.57MB) - Begin Template Processing -
    (0.000332 / 11.57MB) URI: news/detail/vendor-feature-ultrafabrics
    (0.000369 / 11.57MB) Path.php Template: /
    (0.000409 / 11.57MB) Retrieving Template
    (0.000437 / 11.57MB) Parsing Template URI
    (0.004152 / 11.57MB) Template Group Found: news
    (0.005864 / 11.57MB) Retrieving Template from Database: news/detail
    (0.008481 / 11.58MB) Template Found
    (0.010228 / 11.59MB) Retrieving Template from File
    (0.016414 / 11.91MB) Template Type: webpage
    (0.016480 / 11.91MB) Parsing Site Variables
    (0.016608 / 11.91MB) Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.016649 / 11.91MB) Snippets (Values): |||||||||||||||||||||||||FALSE|1|Client|default_site|vendor-feature-ultrafabrics
    (0.017429 / 11.91MB) Parse Date Format String Constants
    (0.017491 / 11.92MB) Parse Current Time Variables
    (0.017660 / 11.92MB) Parsing Segment, Embed, and Global Vars Conditionals
    (0.027165 / 12.02MB) - Beginning Tag Processing -
    (0.027243 / 12.01MB) Parsing Tags in Template
    (0.027323 / 12.02MB) Tag: {exp:channel:entries channel="news" limit="1"}
    (0.027539 / 12.02MB) Closing Tag Found
    (0.027693 / 12.02MB) Processing Tags
    (0.027766 / 12.02MB) Module Tag: Channel/entries
    (0.027801 / 12.02MB) Including Files for Plugins and Modules
    (0.068063 / 14.64MB) Files for Plugins and Modules All Included
    (0.069314 / 14.66MB) Beginning Final Tag Data Processing
    (0.069366 / 14.66MB) Calling Class/Method: Channel/entries
    (0.070675 / 14.67MB) -> Class Called: Channel
    (0.075448 / 14.97MB) -> Method Called: entries
    (0.195265 / 19.79MB) Calling Extension Class/Method: Super_search_ext/channel_entries_query_result
    (0.201110 / 20.15MB) Calling Extension Class/Method: Playa_ext/channel_entries_tagdata
    (0.204582 / 20.21MB) Calling Extension Class/Method: Matrix_ext/channel_entries_tagdata
    (0.300056 / 21.33MB) -> Data Returned
    (0.300297 / 21.29MB) Parsing Tags in Template
    (0.300391 / 21.29MB) Tag: {exp:ce_img:pair src="http://www.client.com/uploads/news/muslin.jpg" height="230" width="172" crop="yes|center,center|0,0" allow_scale_larger="yes"}
    (0.300618 / 21.30MB) Closing Tag Found
    (0.301766 / 21.30MB) Tag: {exp:tag:tags entry_id="901" backspace="2"}
    (0.301973 / 21.30MB) Closing Tag Found
    (0.303544 / 21.31MB) Tag: {exp:hj_social_bookmarks sites="Pinterest|Facebook|Twitter|Email" entry_id="901" image="http://www.client.com/uploads/news/muslin.jpg" }
    (0.303775 / 21.30MB) No Closing Tag
    (0.304273 / 21.31MB) Processing Tags
    (0.304376 / 21.31MB) Plugin Tag: Ce_img/pair
    (0.304429 / 21.31MB) Module Tag: Tag/tags
    (0.305272 / 21.31MB) Plugin Tag: Hj_social_bookmarks/
    (0.305342 / 21.31MB) Including Files for Plugins and Modules
    (0.358870 / 24.11MB) Files for Plugins and Modules All Included
    (0.358938 / 24.11MB) Beginning Final Tag Data Processing
    (0.358987 / 24.11MB) Calling Class/Method: Ce_img/pair
    (0.359382 / 24.11MB) -> Class Called: Ce_img
    (0.359468 / 24.11MB) -> Method Called: pair
    (0.393387 / 25.53MB) -> Data Returned
    (0.393548 / 25.53MB) Calling Class/Method: Tag/tags
    (0.393886 / 25.53MB) -> Class Called: Tag
    (0.455469 / 26.25MB) -> Method Called: tags
    (0.480382 / 26.25MB) -> Data Returned
    (0.480514 / 26.25MB) Calling Class/Method: Hj_social_bookmarks/
    (0.480770 / 26.25MB) -> Class Called: Hj_social_bookmarks
    (0.484717 / 26.25MB) -> Method Called: Hj_social_bookmarks
    (0.485014 / 26.25MB) -> Data Returned
    (0.485187 / 26.24MB) - End Tag Processing -
    (0.485266 / 26.24MB) Processing Advanced Conditionals
    (0.487674 / 26.26MB) - Processing Sub Templates (Depth: 1) -
    (0.487739 / 26.26MB)      List of Embeds: inc/.head,inc/.header,inc/.footer,inc/.js
    (0.487901 / 26.26MB)      Processing Sub Template: inc/.head
    (0.487945 / 26.26MB)      Retrieving Template
    (0.487981 / 26.26MB)      Retrieving Template from Database: inc/.head
    (0.512241 / 26.27MB)      Template Found
    (0.512476 / 26.28MB)      Retrieving Template from File
    (0.513146 / 26.26MB)      Template Type: webpage
    (0.513235 / 26.26MB)      Parsing Site Variables
    (0.513368 / 26.27MB)      Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.513412 / 26.27MB)      Snippets (Values): |||||||||||||||||||||||||FALSE|1|Client|default_site|vendor-feature-ultrafabrics
    (0.514038 / 26.27MB)      Parse Date Format String Constants
    (0.514095 / 26.27MB)      Parse Current Time Variables
    (0.514198 / 26.27MB)      Parsing Segment, Embed, and Global Vars Conditionals
    (0.514323 / 26.27MB)       - Beginning Tag Processing -
    (0.514358 / 26.27MB)       - End Tag Processing -
    (0.514519 / 26.27MB)       - Processing Sub Templates (Depth: 2) -
  • #5 / May 03, 2012 11:10am

    Chris Arnold

    201 posts

    (0.514564 / 26.27MB)           List of Embeds: inc/.title
    (0.514686 / 26.28MB)           Processing Sub Template: inc/.title
    (0.514724 / 26.28MB)           Retrieving Template
    (0.514760 / 26.28MB)           Retrieving Template from Database: inc/.title
    (0.520181 / 26.28MB)           Template Found
    (0.520395 / 26.28MB)           Retrieving Template from File
    (0.521070 / 26.28MB)           Template Type: webpage
    (0.521149 / 26.28MB)           Parsing Site Variables
    (0.521276 / 26.28MB)           Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.521318 / 26.28MB)           Snippets (Values): |||||||||||||||||||||||||FALSE|1|Waymar|default_site|vendor-feature-ultrafabrics
    (0.522040 / 26.28MB)           Parse Date Format String Constants
    (0.522102 / 26.28MB)           Parse Current Time Variables
    (0.522232 / 26.28MB)           Parsing Segment, Embed, and Global Vars Conditionals
    (0.529622 / 26.29MB)            - Beginning Tag Processing -
    (0.530085 / 26.27MB)           Parsing Tags in Template
    (0.530188 / 26.27MB)           Tag: {exp:low_title:category url_title="detail"}
    (0.552087 / 26.27MB)           No Closing Tag
    (0.552247 / 26.27MB)           Tag: {exp:low_title:category url_title=""}
    (0.552386 / 26.28MB)           No Closing Tag
    (0.552501 / 26.28MB)           Tag: {exp:low_title:entry url_title="detail"}
    (0.552633 / 26.28MB)           No Closing Tag
    (0.552749 / 26.28MB)           Tag: {exp:low_title:entry url_title="vendor-feature-ultrafabrics"}
    (0.552877 / 26.29MB)           No Closing Tag
    (0.552970 / 26.29MB)           Processing Tags
    (0.553066 / 26.29MB)           Plugin Tag: Low_title/category
    (0.553127 / 26.29MB)           Plugin Tag: Low_title/category
    (0.553182 / 26.29MB)           Plugin Tag: Low_title/entry
    (0.553237 / 26.29MB)           Plugin Tag: Low_title/entry
    (0.553282 / 26.29MB)           Including Files for Plugins and Modules
    (0.555786 / 26.40MB)           Files for Plugins and Modules All Included
    (0.555864 / 26.41MB)           Beginning Final Tag Data Processing
    (0.555911 / 26.41MB)           Calling Class/Method: Low_title/category
    (0.556197 / 26.41MB)            -> Class Called: Low_title
    (0.556259 / 26.41MB)            -> Method Called: category
    (0.566782 / 26.41MB)            -> Data Returned
    (0.566880 / 26.41MB)           Calling Class/Method: Low_title/category
    (0.567125 / 26.41MB)            -> Class Called: Low_title
    (0.567181 / 26.41MB)            -> Method Called: category
    (0.575128 / 26.41MB)            -> Data Returned
    (0.575219 / 26.41MB)           Calling Class/Method: Low_title/entry
    (0.575447 / 26.41MB)            -> Class Called: Low_title
    (0.575502 / 26.41MB)            -> Method Called: entry
    (0.577837 / 26.42MB)           Low Title, returning
    (0.578036 / 26.41MB)            -> Data Returned
    (0.578111 / 26.41MB)           Calling Class/Method: Low_title/entry
    (0.578361 / 26.41MB)            -> Class Called: Low_title
    (0.578418 / 26.41MB)            -> Method Called: entry
    (0.586912 / 26.42MB)           Low Title, returning vendor feature: UltraFabrics
    (0.587118 / 26.41MB)            -> Data Returned
    (0.587212 / 26.41MB)            - End Tag Processing -
    (0.587266 / 26.41MB)           Processing Advanced Conditionals
    (0.589976 / 26.40MB)      Processing Sub Template: inc/.header
    (0.590054 / 26.40MB)      Retrieving Template
    (0.590095 / 26.40MB)      Retrieving Template from Database: inc/.header
    (0.597064 / 26.40MB)      Template Found
    (0.597288 / 26.41MB)      Retrieving Template from File
    (0.597958 / 26.40MB)      Template Type: webpage
    (0.598042 / 26.40MB)      Parsing Site Variables
    (0.598173 / 26.40MB)      Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.598216 / 26.40MB)      Snippets (Values): |||||||||||||||||||||||||FALSE|1|Waymar|default_site|vendor-feature-ultrafabrics
    (0.598901 / 26.41MB)      Parse Date Format String Constants
    (0.598962 / 26.41MB)      Parse Current Time Variables
    (0.599084 / 26.41MB)      Parsing Segment, Embed, and Global Vars Conditionals
    (0.599203 / 26.41MB)       - Beginning Tag Processing -
    (0.599239 / 26.41MB)       - End Tag Processing -
    (0.599484 / 26.41MB)      Processing Sub Template: inc/.footer
    (0.599523 / 26.41MB)      Retrieving Template
    (0.599559 / 26.41MB)      Retrieving Template from Database: inc/.footer
    (0.602116 / 26.41MB)      Template Found
    (0.602345 / 26.42MB)      Retrieving Template from File
    (0.603022 / 26.41MB)      Template Type: webpage
    (0.603120 / 26.41MB)      Parsing Site Variables
    (0.603240 / 26.41MB)      Snippets (Keys): segment_category_ids|segment_1_category_id|segme…
  • #6 / May 03, 2012 11:11am

    Chris Arnold

    201 posts

    (0.603281 / 26.41MB)      Snippets (Values): |||||||||||||||||||||||||FALSE|1|Client|default_site|vendor-feature-ultrafabrics
    (0.604004 / 26.42MB)      Parse Date Format String Constants
    (0.604420 / 26.42MB)      Parse Current Time Variables
    (0.604558 / 26.42MB)      Parsing Segment, Embed, and Global Vars Conditionals
    (0.605008 / 26.42MB)       - Beginning Tag Processing -
    (0.605101 / 26.40MB)      Parsing Tags in Template
    (0.605172 / 26.41MB)      Tag: {exp:super_search:search}
    (0.605272 / 26.41MB)      Closing Tag Found
    (0.605388 / 26.41MB)      Processing Tags
    (0.605464 / 26.41MB)      Module Tag: Super_search/search
    (0.605502 / 26.41MB)      Including Files for Plugins and Modules
    (0.652874 / 29.09MB)      Files for Plugins and Modules All Included
    (0.652941 / 29.09MB)      Beginning Final Tag Data Processing
    (0.652992 / 29.09MB)      Calling Class/Method: Super_search/search
    (0.653279 / 29.10MB)       -> Class Called: Super_search
    (0.658654 / 29.17MB)      Calling Extension Class/Method: Super_search_ext/super_search_extra_basic_fields_tag
    (0.658950 / 29.17MB)       -> Method Called: search
    (0.668252 / 29.18MB)       -> Data Returned
    (0.668402 / 29.17MB)       - End Tag Processing -
    (0.668470 / 29.17MB)      Processing Advanced Conditionals
    (0.670674 / 29.17MB)      Processing Sub Template: inc/.js
    (0.670727 / 29.17MB)      Retrieving Template
    (0.670767 / 29.17MB)      Retrieving Template from Database: inc/.js
    (0.684154 / 29.17MB)      Template Found
    (0.684368 / 29.18MB)      Retrieving Template from File
    (0.685037 / 29.17MB)      Template Type: webpage
    (0.685116 / 29.17MB)      Parsing Site Variables
    (0.685243 / 29.17MB)      Snippets (Keys): segment_category_ids|segment_1_category_id|segment_1_category_parent_id|segment_1_category_group_id|segment_1_category_name|segment_1_category_description|segment_1_category_image|segment_2_category_id|segment_2_category_parent_id|segment_2_category_group_id|segment_2_category_name|segment_2_category_description|segment_2_category_image|segment_3_category_id|segment_3_category_parent_id|segment_3_category_group_id|segment_3_category_name|segment_3_category_description|segment_3_category_image|last_segment_category_id|last_segment_category_parent_id|last_segment_category_group_id|last_segment_category_name|last_segment_category_description|last_segment_category_image|freelancer_version|site_id|site_label|site_short_name|last_segment
    (0.685285 / 29.17MB)      Snippets (Values): |||||||||||||||||||||||||FALSE|1|Client|default_site|vendor-feature-ultrafabrics
    (0.685853 / 29.18MB)      Parse Date Format String Constants
    (0.685906 / 29.18MB)      Parse Current Time Variables
    (0.685996 / 29.18MB)      Parsing Segment, Embed, and Global Vars Conditionals
    (0.686100 / 29.18MB)       - Beginning Tag Processing -
    (0.686135 / 29.18MB)       - End Tag Processing -
    (0.686354 / 29.16MB) - End Template Processing -
    (0.686382 / 29.16MB) Parse Global Variables
    (0.700110 / 29.16MB) Template Parsing Finished
    Memory Usage: 31,330,448 bytes
  • #7 / May 03, 2012 11:14am

    Chris Arnold

    201 posts

    And here’s the template. Have tried with both disable stuff on and off—no change.

    {embed="inc/.head"}
    
    {embed="inc/.header"}
     
    <!-- Site wrapper -->
    <div id="news" class="container">
    
     <div class="grid_16">
     
      <!-- overall news container -->
      <div class="grid_13 alpha margtop">
      
      {exp:channel:entries channel="news" limit="1"}
      
       <h1>{title}</h1>
       
       <!-- START full news entry -->
       <div class="grid_12 alpha omega bg-news-full">
        <div class="grid_3 alpha details-indent">
         <!-- image and details -->
         <div class="grid_3 alpha omega">
          {exp:ce_img:pair src="{news-icon}" height="230" width="172" crop="yes|center,center|0,0" allow_scale_larger="yes"}
          {made}
          {/exp:ce_img:pair}
         </div>
         <div class="grid_3 alpha omega">
          <!-- date -->
          <div class="grid_2 alpha omega news-date-full">
           {entry_date format="%F"}
           <div class="news-date-number">{entry_date format="%d"}</div>
          </div>
          <!-- article tags -->
          <div class="grid_2 alpha omega news-tags-full">
           <strong>tags</strong><br>
           {exp:tag:tags entry_id="{entry_id}" backspace="2"}{tag}, {/exp:tag:tags}
          </div>
          <!-- archive month -->
          <div class="grid_2 alpha omega news-archive-full">
           <strong>archive</strong><br>
           {entry_date format="%M %Y"}
          </div>
         </div>
        </div>
        <!-- overall content wrap -->
        <div class="grid_8 omega">
         <!-- article -->
         <div class="grid_8 alpha omega news-full">
          {news-full}
         </div>
        </div><!-- x grid_8 -->
       </div><!-- x grid_12 -->
       <!-- END full news entry -->
    
      </div><!-- x grid_13 -->
      
      <!-- sidebar content -->
      <div class="grid_3 omega margtop">
       
       options
       <!-- extras -->
       {if news-gallery != ""}
       <div class="grid_2 alpha extra">
        <!-- offset first image to launch on gallery icon -->
        <!-- using "original-title" due to the prettyphoto/tipsy modification for products -->
        {news-gallery limit="1"}
        <a href="http://{image}">" original-title="{description}"]view gallery</a>
        {/news-gallery}
        
        <!-- hide the rest until called on -->
        <div>
         {news-gallery offset="1"}
         <a href="http://{image}">" original-title="{description}"]</a>
         {/news-gallery}
        </div>
       </div>
       {/if}
       {if news-download != ""}
       <div class="grid_2 alpha extra">
        <a href="http://{news-download}" target="_blank" rel="noopener">download</a>
       </div>
       {/if}
       <div class="grid_2 alpha extra">
        <a href="http://{site_url}/contact/">contact us</a>
       </div>
       <div class="grid_2 alpha extra">
        <a href="http://{site_url}/news/">back to news</a>
       </div>
       <div class="clear"></div>
       {!-- share --}
       share
       {!-- sharing links --}
       {exp:hj_social_bookmarks sites="Pinterest|Facebook|Twitter|Email"
        entry_id="{entry_id}"
        image="{news-icon}"
       }
      </div>
      
      {/exp:channel:entries}
      
     </div><!-- x grid_16 -->
    </div><!-- x container -->
    
    {embed="inc/.footer"}
    
    [removed]
    $(document).ready(function() {
     {embed="inc/.js"}
     // LIGHTBOX
     // initialize pretty photo for news articles with photos
     $("a[rel^='prettyPhoto']").prettyPhoto();
    });
    [removed]
    
    </body>
    </html>
  • #8 / May 04, 2012 4:22pm

    Dan Decker

    7338 posts

    Hi Chris,

    Just looking that template over and CE Image there… that is a great add-on, very handy. Also kinda greedy with the RAM. Especially the tag pair.

    Can you run a test with the CE Image tags out, like take them completely out of the template, and let me know if the RAM usage drops.

    Cheers,

  • #9 / May 07, 2012 2:12pm

    Chris Arnold

    201 posts

    Dan, Removing CE dropped it a couple megs. Still topped out at over 27mb, though.

  • #10 / May 08, 2012 5:56pm

    Dan Decker

    7338 posts

    Hey Chris,

    This is really odd. It’s only using 8MB or so start-to-finish, but it’s starting at 12MB - which is bizarre.

    I think we might ought to get a closer look. Be looking for an email from me.

    Cheers,

  • #11 / May 24, 2012 4:02pm

    Hi we are experiencing the same thing.

    A completely empty template starts out at 14,880,640 bytes - why does it do that?

    TEMPLATE DEBUGGING
    (0.000005 / 13.53MB) - Begin Template Processing -
    (0.000450 / 13.59MB) URI: common/_test
    (0.000460 / 13.59MB) Path.php Template: /
    (0.000470 / 13.59MB) Retrieving Template
    (0.000477 / 13.59MB) Parsing Template URI
    (0.006607 / 13.59MB) Template Group Found: common
    (0.006998 / 13.59MB) Retrieving Template from Database: common/_test
    (0.007442 / 13.60MB) Template Found
    (0.008553 / 13.60MB) Retrieving Template from File
    (0.010034 / 13.88MB) Template Type: webpage
    (0.010050 / 13.88MB) Parsing Site Variables
    (0.010083 / 13.88MB) Snippets (Keys): freelancer_version|structure_1|structure_2|structure_3|structure_4|structure_5|structure_6|structure_7|structure_8|structure_9|structure_10|structure:is:page|structure:is:listing|structure:is:listing:parent|structure:page:entry_id|structure:page:template_id|structure:page:title|structure:page:slug|structure:page:uri|structure:page:url|structure:parent:entry_id|structure:parent:title|structure:parent:slug|structure:parent:uri|structure:parent:url|structure:parent:child_ids|structure:top:entry_id|structure:top:title|structure:top:slug|structure:top:uri|structure:top:url|structure:child_listing:channel_id|structure:child_listing:short_name|structure:child_ids|structure:freebie:entry_id|screenname|social-share-options|featured_vid_entry_id|site_id|site_label|site_short_name|last_segment
    (0.010095 / 13.88MB) Snippets (Values): FALSE|common|_test||||||||||||||||||||||||||common|/common/|http://jukinvideo.com/common/|||||{exp:low_replace find="SPACE" replace="-"} {exp:member:custom_profile_data} {screen_name} {/exp:member:custom_profile_data} {/exp:low_replace}|{exp:channel:entries entry_id="7"} {administration_social_media_send} {exp:low_replace find="<li>|</li>|<ul>|</ul>" replace="||||" multiple="yes"} {social_bookmarks} {/exp:low_replace} {/administration_social_media_send} {/exp:channel:entries}| {exp:channel:entries channel="featured_member_video"} {video_entry_id} {/exp:channel:entries}|1|JukinVideo|default_site|_test
    (0.010190 / 13.89MB) Parse Date Format String Constants
    (0.010204 / 13.89MB) Parse Current Time Variables
    (0.010225 / 13.89MB) Parsing Segment, Embed, and Global Vars Conditionals
    (0.012485 / 13.97MB) - Beginning Tag Processing -
    (0.012497 / 13.97MB) - End Tag Processing -
    (0.012977 / 14.04MB) Calling Extension Class/Method: Ooyala_ext/on_template_post_parse
    (0.019134 / 14.04MB) Calling Extension Class/Method: Structure_ext/template_post_parse
    (0.019217 / 14.03MB) - End Template Processing -
    (0.019225 / 14.03MB) Parse Global Variables
    (0.019761 / 14.04MB) Template Parsing Finished
    Memory Usage: 15,321,384 bytes
  • #12 / May 24, 2012 6:32pm

    Chris Arnold

    201 posts

    Based on what I was told, EE templates carry a certain amount of overhead before the add-ons / modules start parsing out. We couldn’t really nail down why the site I was referring to seemed to be higher than others. In your case, your template is 15mb total, whereas mine ran up to over 30mb because of its complexity. The issue ultimately lay with the host, but it sounds like it can be common to see the higher starting points. What what reason specifically, I’m not sure.

  • #13 / May 24, 2012 6:44pm

    Chris Arnold

    201 posts

    Also, you should throw that output in a code block 😊

  • #14 / May 24, 2012 7:57pm

    Appreciate the suggestion!

    We’re running our own dedicated server and have optimized mysql, apache and php.

    I just don’t understand why and empty (completely blank) template would have a 15mb size from the get go.

    Caching pages cuts the page size down tremendously but this 15MB overhead is just perplexing.

  • #15 / May 31, 2012 12:15pm

    Dan Decker

    7338 posts

    Hi chiwayentertainment,

    Thanks for your questions and welcome to the Forums!

    I just don’t understand why and empty (completely blank) template would have a 15mb size from the get go.

    ExpressionEngine has a memory footprint even before processing begins - add-on can increase this footprint. Think of ExpressionEngine as the OS - having bits in resident memory - and templates as run-time apps - adding to the footprint.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases