ameerulislam — 2014-05-12T05:11:42-04:00 — #1
I'm using a theme and some plugins on my website. The front of the site works fine but the backend is very very slow. It's a directory website I have thousands of entries at the back end. Any one has any idea what are the usual reason for the backend to be slow. Also it is a .com.bd domain. I don't think that's a problem though.
cheesedude — 2014-05-12T06:21:08-04:00 — #2
Are you using a caching plugin to serve static HTML of your content?
ameerulislam — 2014-05-12T09:37:50-04:00 — #3
I'm using W3 Total Cache , But I'm not sure what you mean by static HTML of my content. Whether I use cache plugin or not the content is always served as HTML in the browser right?
cheesedude — 2014-05-12T22:09:30-04:00 — #4
Yes, the content is always served as HTML in the browser. However, if you are using a caching plugin, you are serving static HTML to visitors who are not logged in. The Wordpress engine is not running to generate the output and make database queries as that content has been saved in the cached files. The server transmits the cached HTML files to the browser instead of running the Wordpress engine which requires much less server resources.
Wordpress is a very bloated script. It consumes a lot of server resources to generate one page view. That is why many people using caching plugins. The question now is why your admin area is loading slowly.
If you log in to your Wordpress then view the regular non-admin site pages, does it load slowly? If so, there is a good chance your web server is overloaded. The admin area checks external websites to check for updates to the Wordpress core and plugins. It is possible that could be the cause of the slowdown. But I have a feeling you may be on an overloaded server. That's the first and most simple thing to check.
I have a simple little script in the post linked to below that you can copy and place into a PHP file and then run the script by navigating your browser to it. It will output the server's load average. If the load average is high, we know right away what the problem is. If the load is not high, then further investigation will be required.
ameerulislam — 2014-05-27T05:50:29-04:00 — #5
Brother this is what I got with your script.. I don't understand most of it.. Maybe you can help me out.. Thanks!
Server Load Averages & CPU Info
Server Load Average
1 minute: 0.1
5 minute: 0.02
15 minute: 0.01
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 21
CPU MHz: 2300.000
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
NUMA node0 CPU(s): 0-15
cheesedude — 2014-05-27T08:33:41-04:00 — #6
Your server has almost no load, so that cannot be the reason for the admin area slowness. Your site loads pretty fast when you turn off your caching plugin? Do you know how much memory is available to your script? You can find out by running this function and looking for the memory_limit field:
Others have had trouble with admin area slowness. You can read through possible solutions and plenty of theories. One is to increase the memory available. Another is to check to ensure your host does not have any firewall rules blocking the admin area from pulling data from external sources. Some of the threads may be relevant to older versions of Wordpress 3.x.
Others have had the same problem you are having. Now you will have to go through possible causes and troubleshoot each one to find a solution. It will take time.
ameerulislam — 2014-05-28T02:50:03-04:00 — #7
this is the memory limit
Directive Local Value Master Value
memory_limit 256M 256M
By the way I'm using W3 Total Cache plugin as well. Does this plugin contribute to slowness ironically!?
cheesedude — 2014-05-28T09:14:10-04:00 — #8
256 MB memory limit is very good. Your server is not overloaded and you have plenty of memory. Caching plugins should only work on the front-end, not on the admin area. So I do not think that would be the cause. As of this point the obvious problem areas have been cleared as possible suspects so as part of troubleshooting, all plugins should be disabled then testing should occur, enabling plugins one by one and testing each time.
In your phpinfo() output, do you see anything related to PHP-FPM?
ameerulislam — 2014-05-28T13:09:31-04:00 — #9
I can't see FPM, Okay I think I didn't mention that the front part is slow as well. you can actually visit my site.., businessdirectory.com.bd
cheesedude — 2014-05-29T08:58:50-04:00 — #10
That is pretty important to know. I did a test on tools.pingdom.com of your site. The index page load speed was reasonably fast (if it is dynamically generated). The DNS lookup and connection times were slow (both over 350 ms, but that could be due to the .bd extension). The wait time for the HTML to be generated was fast and the receive time was fast. What really stands out is the 2 second wait time for CSS file businessdirectory.com.bd/?sccss=1&ver=3.9.1 that returned only 565 bytes. You may have to do something about that.
The connection times for your content hosted on Amazon was slow as well.
Run a test on tools.pingdom.com and you can see where the slow parts of your page loads are. Your main html loaded fast (but it is early morning). The real test would be to turn off the caching plugin and allow it to generate on-the-fly.
From what I have seen so far your server does not appear to be overloaded and your site seems to have a few slow spots.
ameerulislam — 2014-05-29T13:17:27-04:00 — #11
wow.. do u think .bd can slow things down.. I thought about it earlier but then I thought that doesn't sound logical..
I can fix businessdirectory.com.bd/?sccss=1&ver=3.9.1 .. That's just a custom css plugin.. I don't need it when I'm using child theme..
Can child theme cause problem?
I some time feel I should stop using wordpress some times because of these slow problems.. Do you think that's a good idea?
Thank you.. you have been helping me a lot
mittineague — 2014-05-29T13:32:26-04:00 — #12
WordPress makes a lot of function calls to the database. If your "options" table is large this could be causing a slowdown.
If your site is relatively "stable" one of the easiest things to do would be to go through the template files and hard-code anything you can.
eg. if your site name is "SiteName" do you really need to have a function query the db to get that to place it in the markup?
ameerulislam — 2014-05-29T13:50:11-04:00 — #13
Interesting point there. Thanks
@cheesedude , also the inner pages are a lot slower than that home page.
ameerulislam — 2014-05-30T07:48:38-04:00 — #14
I figured that the "W3 Total Cache" plugin is making the site slow. But if disable the plugin I have another problem
This page of mine which has thousands (7K+ listing) do not load
and returns this error.
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 71 bytes) in /home/business/public_html/wp-content/themes/directory/AIT/Framework/Libs/Nette/nette.min.inc on line 648
cheesedude — 2014-05-30T11:06:58-04:00 — #15
I had a post written up yesterday that I had to leave uncompleted. I will stop back later today.
ameerulislam — 2014-05-30T12:50:28-04:00 — #16
Really appreciate your help my friend.
system — 2014-06-23T05:57:40-04:00 — #17
If your admin is slow then this is the issue of plugins & if complete website is running slow the change the hosting. Some time hosting play a very important role in these issues...
shahnawazsadique — 2014-06-24T08:34:17-04:00 — #18
See you some part of website is loading very fast ,What I feel is you have to look some unused plugin to kick out,Use image size reducer and G zip.This plugin will surely help you out.
bluedreamer — 2014-06-24T08:55:34-04:00 — #19
On http://businessdirectory.com.bd/cat/banks-and-other-financial-institutions/ I get a memory error:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 89 bytes) in /home/business/public_html/wp-includes/capabilities.php on line 766
Looks like some process is not working as efficiently as it could, or your have some corrupt or dodgy data somewhere.
shaun — 2014-06-25T11:18:26-04:00 — #20
Did you try increasing the memory limit?
I think there's something you can do with a php.ini file, or, through googling, I also found this.