Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 04, 2012 5:21 pm 
Offline
Senior Newbie

Joined: Sun Mar 04, 2012 5:10 pm
Posts: 5
Hi. I've read through countless threads on here regarding Apache configuration and slow page loads but nothing I do seems to help.

My Linode 512 is hosting this Wordpress site: http://www.corstorphinehill.co.uk

It's not getting much traffic.

Sometimes, maybe every 15th page, it will take the page up to 40 seconds to load. It seems to spend a lot of time "waiting for website" in Firefox.

My YSlow score is Grade A (93/100)
My PageSpeed score is 95/100

I've ruled out my firewall (ufw) by temporarily disabling it. The load never seems to spike. I'm at a bit of a dead end. Can anyone please help? Is there any way to tell exactly why my browser is waiting?

Here's my apache config:

Code:
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 2
<IfModule mpm_prefork_module>
KeepAliveTimeout 2
StartServers 5
MinSpareServers 5
MaxSpareServers 5
MaxClients 20
MaxRequestsPerChild 1000
</IfModule>
<IfModule mpm_worker_module>
    StartServers          1
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxClients          8
    MaxRequestsPerChild   0
</IfModule>
<IfModule mpm_event_module>
    StartServers          1
    MaxClients          8
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadLimit          64
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
logfile
CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined

Include /etc/apache2/conf.d/
Include /etc/apache2/sites-enabled/



Top
   
 Post subject:
PostPosted: Sun Mar 04, 2012 5:34 pm 
Offline
Senior Newbie

Joined: Sun Mar 04, 2012 5:10 pm
Posts: 5
Been experimenting with KeepAlive on. Doesn't seem to help :cry:


Top
   
 Post subject:
PostPosted: Mon Mar 05, 2012 12:01 am 
Offline
Newbie

Joined: Mon Apr 04, 2011 4:21 pm
Posts: 2
I've tried reloading your site quite a few times and haven't noticed it loading slowly. Could it be network related? Try a ping -t and see if you're getting some slow pings or timeouts.


Top
   
 Post subject:
PostPosted: Mon Mar 05, 2012 8:02 am 
Offline
Senior Member

Joined: Fri Jan 20, 2012 11:19 am
Posts: 100
I loaded the site over 20 times too and no noticeable delay for me. Did you try using a different browser? One of the newer Firefox's did that to me with a website routinely. That why I still use 3.6 :evil:

_________________
If all else fails, reboot...
PHP Tutorials and MySQL Tutorials


Top
   
 Post subject:
PostPosted: Mon Mar 05, 2012 9:43 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
I loaded several times as well, it works fine for me.

James


Top
   
 Post subject:
PostPosted: Mon Mar 05, 2012 9:51 am 
Offline
Senior Member

Joined: Fri Jan 20, 2012 11:19 am
Posts: 100
And again from a different IP address 8). From my experience, I'd say your site is quite fine.

_________________
If all else fails, reboot...

PHP Tutorials and MySQL Tutorials


Top
   
 Post subject:
PostPosted: Tue Mar 06, 2012 5:38 am 
Offline
Senior Newbie

Joined: Sun Mar 04, 2012 5:10 pm
Posts: 5
Thanks all for trying. I'm very reassured that nobody thinks it's slow!

I think the problem might only be evident if I'm logged in to Wordpress, although it seems OK today. I'll do some more experimenting.

Thanks again!


Top
   
 Post subject:
PostPosted: Tue Mar 06, 2012 6:29 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
DrookitMunter wrote:
I think the problem might only be evident if I'm logged in to Wordpress, although it seems OK today. I'll do some more experimenting.

I don't know WordPress specifically, but it wouldn't be surprising if caching was largely or completely disabled for logged-in users.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Tue Mar 06, 2012 10:56 am 
Offline
Senior Newbie

Joined: Wed Dec 14, 2011 8:55 pm
Posts: 12
Website: http://www.dreamphysix.com
Location: Atlanta, Georgia
Can't see any issues from my end.
https://developers.google.com/pagespeed ... bile=false


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2012 6:53 pm 
Offline
Senior Newbie

Joined: Sun Mar 04, 2012 5:10 pm
Posts: 5
Yip I'm pretty certain now that this is only happening when users are logged in. So this is a Wordpress problem rather than a configuration problem.

Thanks for everyone's help and input, it's appreciated :)


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2012 8:14 pm 
Offline
Senior Member

Joined: Sun Feb 21, 2010 5:12 pm
Posts: 64
The page IS a bit heavy.

- front page has three 150kb images in the slideshow
- google analytics(13kb) and google pagespeed(54kb) and facebook js(43kb) loading in the head and 170kb of other facebook js loading later
- 3 web fonts

It looks nice, but it's not exactly built for speed.

http://loads.in/waterfall.php?inputUrl= ... d%3D491556

Just to let you know, I loaded the front page a few times and I ended up getting a logged in page for DrookitMunter. I didn't actually have admin access, but you should check that you have your caching system properly configured, because it's caching admin users.


Top
   
 Post subject:
PostPosted: Wed Mar 07, 2012 9:26 pm 
Offline
Senior Member

Joined: Sun Feb 21, 2010 5:12 pm
Posts: 64
/category/blog/ seems to be the most likely page to lag.

http://loads.in/waterfall.php?inputUrl= ... d%3D491605

These things are tough to track down. Unfortunately, the tools are pretty technical. xhprof for profiling, mysql slow query log and EXPLAIN if it's in the database query. I've heard good things about New Relic free trial.

You might want to go through your wordpress modules and research each one and see if others are having problems with any.


Top
   
 Post subject:
PostPosted: Fri Mar 09, 2012 6:55 pm 
Offline
Senior Newbie

Joined: Sun Mar 04, 2012 5:10 pm
Posts: 5
Thanks for the tips and thanks for warning me about the logged in as admin thing - worrying! I believe that's fixed now


Top
   
 Post subject:
PostPosted: Sun May 06, 2012 1:30 pm 
Offline
Senior Newbie

Joined: Wed Mar 10, 2010 6:43 pm
Posts: 8
Yeah http://corstorphinehill.co.uk/category/blog/ is slow for me.

Every refresh takes about 20 seconds.


Top
   
 Post subject:
PostPosted: Sun May 06, 2012 9:41 pm 
Offline
Junior Member

Joined: Mon Sep 19, 2011 2:48 am
Posts: 28
bradleyg wrote:
Yeah http://corstorphinehill.co.uk/category/blog/ is slow for me.

Every refresh takes about 20 seconds.

It took a LONG time to load for me initially but then refreshing was just as fast as could be. The first load though was at least 30-45 seconds if not more.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group