<p>There is a reasonable chance that this is due to a specific plugin.</p>

<p>Try disabling all of your plugins, and see if the site is loading quickly again. If it is, try re-enabling each plugin one by one, to determine which of them may be causing the slowdown.</p>

<p>It's important to remember that your plugins actually get loaded on every single page load, both front-end and back-end.</p>

CC BY-SA 3.0
2014-10-04T23:11:30.050Z
If you're using the Smart Map plugin, it's possible that is causing your problem. The plugin relies on [FreeGeoIp.net](http://freegeoip.net/) to automatically geolocate. That service seems to be down right now. If this is the case, feel free to contact me at support@doublesecretagency.com ... I'm currently working on a fix for this issue, and may be able to guide you through a temporary workaround.
Lindsey D
CC BY-SA 3.0
2014-10-04T23:21:22.747Z
Lindsey, this was it! Thanks. Looking forward to the fix.
Jason D
CC BY-SA 3.0
2014-10-04T23:23:10.417Z
Is there any way to time-profile plugins and other parts of Craft? My server now responds in ~1.8s, which still seems high and makes me wonder where I can further optimize it.
Jason D
CC BY-SA 3.0
2014-10-04T23:24:29.930Z
That's a great question... You may want to open that as a brand new question.
Lindsey D
CC BY-SA 3.0
2014-10-05T16:33:11.353Z
**UPDATE:** I've updated the plugin to remove any heavy logic from the `init` method, per [Brad's comment on this other thread...](http://craftcms.stackexchange.com/a/2923/45) The updated version released last night includes a patch which almost completely resolves this issue. (A future release will iron out the remaining related details.)
Lindsey D
CC BY-SA 3.0
2014-10-04T23:07:52.710Z
2014-10-04T23:07:52.710Z
Lindsey D
<p>One of my Craft websites is taking a long time (30+ seconds) to load. The /admin area also loads slowly. I have other installs of Craft on the same server that don't experience this problem.</p>

<p>Are there any debugging tools built into Craft to see which part of the site is taking the long time to load?</p>

<p>Some server information: </p>

<ul>
<li>DigitalOcean instance in SF with 2GB ram</li>
<li>Nginx 1.6.0 (set up through Forge). </li>
<li>PHP 5.5.12-2</li>
</ul>

<p>I have tried a couple things: </p>

<ul>
<li>Disabling gzip (I recently enabled it)</li>
<li>Restarting the server</li>
<li>Changing the mysql connection address from localhost to 127.0.0.1 (also tried server IP)</li>
<li>Enabling memcached as the cache type</li>
<li>Clearing cache/rebuild assets/reindex search</li>
</ul>

<p>The error logs don't show anything unusual. </p>

<server>
Website taking 30+ seconds to load
# Website taking 30+ seconds to load

(Asked by: username_0 on 2014-10-04)

One of my Craft websites is taking a long time (30+ seconds) to load. The /admin area also loads slowly. I have other installs of Craft on the same server that don't experience this problem.

Are there any debugging tools built into Craft to see which part of the site is taking the long time to load?

Some server information:

* DigitalOcean instance in SF with 2GB ram
* Nginx 1.6.0 (set up through Forge).
* PHP 5.5.12-2

I have tried a couple things:

* Disabling gzip (I recently enabled it)
* Restarting the server
* Changing the mysql connection address from localhost to 127.0.0.1 (also tried server IP)
* Enabling memcached as the cache type
* Clearing cache/rebuild assets/reindex search

The error logs don't show anything unusual.

**Tags:** server

---

## 1 answers

### Answer by username_1 on 2014-10-04. Score: 7 | Accepted answer

There is a reasonable chance that this is due to a specific plugin.

Try disabling all of your plugins, and see if the site is loading quickly again. If it is, try re-enabling each plugin one by one, to determine which of them may be causing the slowdown.

It's important to remember that your plugins actually get loaded on every single page load, both front-end and back-end.

> **Comments:**
> **username_1**: If you're using the Smart Map plugin, it's possible that is causing your problem. The plugin relies on [FreeGeoIp.net](http://freegeoip.net/) to automatically geolocate. That service seems to be down right now. If this is the case, feel free to contact me at support@doublesecretagency.com ... I'm currently working on a fix for this issue, and may be able to guide you through a temporary workaround.  
> **username_0**: Lindsey, this was it! Thanks. Looking forward to the fix.  
> **username_0**: Is there any way to time-profile plugins and other parts of Craft? My server now responds in ~1.8s, which still seems high and makes me wonder where I can further optimize it.  
> **username_1**: That's a great question... You may want to open that as a brand new question.  
> **username_1**: **UPDATE:** I've updated the plugin to remove any heavy logic from the `init` method, per [Brad's comment on this other thread...](http://craftcms.stackexchange.com/a/2923/45) The updated version released last night includes a patch which almost completely resolves this issue. (A future release will iron out the remaining related details.)  

---

