Current time: 11-13-2019, 10:19 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with TTFB
03-28-2012, 07:18 PM
Post: #1
Help with TTFB
Thanks for having such a great forum and for all the tips that have helped me get this far solo.

I'm trying to get my TTFB lowered as much as possible however I seem to have hit a wall.

I've tried optimizing what I can using the suggestions from Yslow and Pagespeed, and have even turned on the pagespeed option from my shared host (dreamhost), all of which have helped the overall load time, # of HTTP requests and size of download.

With all of those enhancements, however, my site seems to be running really slowly given its size.

Here are the test results: http://www.webpagetest.org/result/120328...1/details/

I run wordpress and in trying to figure exactly why the TTFB is as slow as it is I've asked my webhost (DH) and they've said perhaps it is coming from Procwatch (which would only be an issue i suppose if i were running multiple sites at once that were all getting traffic - which is definitely not the case).

They then suggested plugins as perhaps contributing to the slowdown. To try and figure that out, I've downloaded and run the P3 Plugin Profiler which has given me the following results:

# of plugins: 24
site load time: 2.9667s
Visits: 15
Number of Plugin Function Calls: 6,966 calls avg.
Memory Usage: 58.27 MB avg.
MySQL Queries: 59 queries avg.


I've setup and run a separate test site, using only the basic wordpress installation. With nothing else running except the basic wordpress theme I get:
Site Load Time 0.1586 seconds avg.
Visits: 5
Number of Plugin Function Calls: 28 calls avg.
Memory Usage: 19.60 MB avg.
MySQL Queries: 13 queries avg.

Even so, my TTFB for were unimpressive considering the bare site (
http://www.webpagetest.org/result/120328...1/details/
)

With one of the main plugins (Wishlist Member) active, I got a real lag in TTFB

http://www.webpagetest.org/result/120328...1/details/

After Wishlist Member the P3 Plugin Profiler shows the following:
Site Load Time 1.8438 seconds avg.
Visits: 5
Number of Plugin Function Calls: 336 calls avg.
Memory Usage: 29.35 MB avg.
MySQL Queries: 58 queries avg

Any help on trying to figure out a way to speed things up on TTFB would be greatly appreciated. Since certain plugins (such as WLM) have to stay, am I doomed to a slow site? (PS Caching is not an option with Wishlist Member because it gets super cranky and unstable - this was confirmed by plugin author as well)
Find all posts by this user
Quote this message in a reply
03-29-2012, 03:26 AM
Post: #2
RE: Help with TTFB
You're sort of in a tough position because your performance is most likely a function of the database performance and the number of queries from the plugins and you are on shared hosting (and from personal experience, Dreamhost's mysql performance isn't so hot).

Page caching may not be an option but have you tried doing something a little lower level and doing database query caching? I know W3TC can do it and I'd be surprised if other plugins didn't also. You might be able to get rid of some of the pain that way.

If that doesn't work, you MIGHT be able to sidestep the problem a bit and try running wordpress on sqllite but I wouldn't recommend it if you get a lot of traffic.

Most real fixes are going to involve $$ and switching hosting if you can't eliminate a lot of the existing plugins.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-29-2012, 06:29 AM
Post: #3
RE: Help with TTFB
(03-29-2012 03:26 AM)pmeenan Wrote:  You're sort of in a tough position because your performance is most likely a function of the database performance and the number of queries from the plugins and you are on shared hosting (and from personal experience, Dreamhost's mysql performance isn't so hot).

Page caching may not be an option but have you tried doing something a little lower level and doing database query caching? I know W3TC can do it and I'd be surprised if other plugins didn't also. You might be able to get rid of some of the pain that way.

If that doesn't work, you MIGHT be able to sidestep the problem a bit and try running wordpress on sqllite but I wouldn't recommend it if you get a lot of traffic.

Most real fixes are going to involve $$ and switching hosting if you can't eliminate a lot of the existing plugins.

Thanks Patrick. I have a plugin called WP-database manager - would that conflict with W3TC database query caching? If the issue is to spend $$, what would be the next reasonable step - what kind of hosting would I need in order to fix the MySql drag?
Find all posts by this user
Quote this message in a reply
03-31-2012, 01:31 AM
Post: #4
RE: Help with TTFB
You could look at a VPS that gives you more control over the software stack and resources or possibly try WP Engine (they target fast serving for Wordpress specifically).

Sorry, I don't know if the plugins would conflict.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-05-2012, 11:01 AM
Post: #5
RE: Help with TTFB
(03-31-2012 01:31 AM)pmeenan Wrote:  You could look at a VPS that gives you more control over the software stack and resources or possibly try WP Engine (they target fast serving for Wordpress specifically).

Sorry, I don't know if the plugins would conflict.

Hi,
I just used this test, my website uploads fast, but my WordPress blog (Hosted on DreamHost) loads 10 seconds, 8 of which are for that First Time To Byte time.

I just moved to VPS (for website not database). No change.

Would it help to move database to VPS or is this a waste of time and money.

Only have 9 plugins. I did a test, deactivating all of them. Reran, and 10 seconds dropped to 3.2 - there is one thing, this blog/javascript/loading.gif - what is this, can I remove it?

Will now put back in plugins until I find the culprit.
Find all posts by this user
Quote this message in a reply
05-05-2012, 11:21 AM
Post: #6
RE: Help with TTFB
(03-31-2012 01:31 AM)pmeenan Wrote:  You could look at a VPS that gives you more control over the software stack and resources or possibly try WP Engine (they target fast serving for Wordpress specifically).

Sorry, I don't know if the plugins would conflict.



Here is more data. I disabled all of my 9 plugins, got 3-4 seconds pageload.

Went one by one, found the culprit: Share and Follow - added 10 seconds of time.

Anyone have a fast social networking plugin for wordpress they can recommend?
Find all posts by this user
Quote this message in a reply
08-10-2012, 12:04 PM
Post: #7
RE: Help with TTFB
(03-31-2012 01:31 AM)pmeenan Wrote:  You could look at a VPS that gives you more control over the software stack and resources or possibly try WP Engine (they target fast serving for Wordpress specifically).

Sorry, I don't know if the plugins would conflict.

Hi Patrick,

So it has been a while since my first round of performance optimizing activities and while our site's traffic has grown, the performance has started to degrade. Recently I switched the site (wordpress) over to a VPS (still with dreamhost) and to my amazement the performance seemed to get worse - i.e the site is now loading slower than it did when it was on shared hosting. The memory usage meter is showing that CPU load is low and memory usage is well below the threshold value so I am at a loss as to how explain the degradation in performance and more importantly how to bring the load times down substantially?

Thanks!
Find all posts by this user
Quote this message in a reply
08-11-2012, 12:58 AM
Post: #8
RE: Help with TTFB
Did you also move to a VPS for the database? If I remember correctly, Dreamhost has those separately. The database is usually the big constraint for Wordpress.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-11-2012, 04:20 AM
Post: #9
RE: Help with TTFB
Thanks for the suggestion - I currently don't have a VPS for the database. I'll look into whether getting a VPS for the database will help with the performance of the site, especially under growing traffic. Thanks for all your help!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)