Answers.Body: <p>I don't know where the first set of data you posted is coming from, but in the attached stack trace autoloading is only <code>.54%</code> of the total request.</p>
  
  <p>Whatever template(s) you're rendering account for <code>65%</code> of the request (for a total of 8 seconds), so I'd start inspecting there.</p>
  
  <p>Loading all of the plugins you have installed is about <code>10%</code> (which accounts for about 1.3 seconds of the request), so I'd investigate those as well.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T04:40:32.267Z
Answers.Text: The information about 21% being Yii autoload comes from APM Summary. I have edited the question added image
Answers.UserDisplayName: Silvanus Matiku
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T04:47:15.497Z
Answers.Text: Those are summary stats across all of your requests.  Focus on the stack trace which is for the one slow-running 12 second request.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-22T04:35:30.647Z
Answers.LastActivityDate: 2015-09-22T04:35:30.647Z
Answers.UserDisplayName: Brad Bell
Body: <p>I am troubleshooting a client website and I have installed new relic on VPS.</p>
  
  <p>Summary:
  RESP. TIME = 12,300ms<br>
  USER CPU BURN = 7,000ms (56.9%)<br>
  SYSTEM CPU BURN = 115ms (0.935%)<br></p>
  
  <p><code>
  Slowest components  Count   Duration    %
  YiiBase::autoload   116     2,570 ms    21%
  Craft\ElementsService::buildElementsQuery   175 1,960 ms    16%
  Craft\ElementsService::findElements 175 1,690 ms    14%
  Craft\BaseElementModel::setContent  153 1,300 ms    11%
  __TwigTemplate_8a189a6b8bb1cda953a4a38f8aa3c4ccaccd30c1b5a2b790673a05284bb0de6b::block_menu 1   519 ms  4%
  Composer\Autoload\includeFile   19  432 ms  4%
  Remainder   1   3,840 ms    31%
  Total       12,300 ms   100%
  </code></p>
  
  <p><a href="https://i.sstatic.net/1YHDA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/1YHDA.png" alt="enter image description here"></a>
  I have attached a trace.<a href="https://i.sstatic.net/vQBZM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vQBZM.png" alt="enter image description here"></a></p>
  
  <p>It looks like a lot of time is spent on autoload. Any ideas what will cause this? Or what should I be looking at to fix this issue?</p>
  
Tags: <performance><craft-pro>
Title: Troubleshooting Slow Craft Website - New Relic
ThreadText: # Troubleshooting Slow Craft Website - New Relic
  
  (Asked by: username_0 on 2015-09-22)
  
  I am troubleshooting a client website and I have installed new relic on VPS.
  
  Summary:
  RESP. TIME = 12,300ms  
  USER CPU BURN = 7,000ms (56.9%)  
  SYSTEM CPU BURN = 115ms (0.935%)
  
  `Slowest components Count Duration %
  YiiBase::autoload 116 2,570 ms 21%
  Craft\ElementsService::buildElementsQuery 175 1,960 ms 16%
  Craft\ElementsService::findElements 175 1,690 ms 14%
  Craft\BaseElementModel::setContent 153 1,300 ms 11%
  __TwigTemplate_8a189a6b8bb1cda953a4a38f8aa3c4ccaccd30c1b5a2b790673a05284bb0de6b::block_menu 1 519 ms 4%
  Composer\Autoload\includeFile 19 432 ms 4%
  Remainder 1 3,840 ms 31%
  Total 12,300 ms 100%`
  
  [![enter image description here](https://i.sstatic.net/1YHDA.png)](https://i.sstatic.net/1YHDA.png)
  I have attached a trace.[![enter image description here](https://i.sstatic.net/vQBZM.png)](https://i.sstatic.net/vQBZM.png)
  
  It looks like a lot of time is spent on autoload. Any ideas what will cause this? Or what should I be looking at to fix this issue?
  
  **Tags:** performance, craft-pro
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-09-22. Score: 1
  
  I don't know where the first set of data you posted is coming from, but in the attached stack trace autoloading is only `.54%` of the total request.
  
  Whatever template(s) you're rendering account for `65%` of the request (for a total of 8 seconds), so I'd start inspecting there.
  
  Loading all of the plugins you have installed is about `10%` (which accounts for about 1.3 seconds of the request), so I'd investigate those as well.
  
  > **Comments:**
  > **username_0**: The information about 21% being Yii autoload comes from APM Summary. I have edited the question added image  
  > **username_1**: Those are summary stats across all of your requests.  Focus on the stack trace which is for the one slow-running 12 second request.  
  
  ---
  
  