Search

bbPress Showcase » bbPress Chat

  1. andersson
    User has not uploaded an avatar

    member
    Joined: Apr '08
    Posts: 11

    offline

    Hi _ck_ (and anyone else reading this),

    I'm wondering how you've gotten your server down to around 0.100 sec to load the frontpage.

    Let me tell you what I see in my benchmarks and what I've done on my sites to come down to 0.600 sec where I am right now:

    1. I have taken out the first query to make sure the db is there in bb_settings.php
    2. I have commented out a couple of checks for obsolete stuff, and also checks for what PHP version is run
    3. I'm using PEAR Cache_Lite for any anonymous user that comes through the door for practially everything on the frontpage

    Still, my server tells me that 0.600 sec is spent on rendering the page. Looking at the data with your _benchmark plugin it shows that 500 of the 600 milliseconds are spent _before_ any of my code (the controller and the view) is rendered. Most of it is spent somewhere in the core logic of loading bbpress. By "my code" I mean the page controller and the theme view e.g. topic.php and my-templates/template1/topic.php.

    I gather it can be either the @mysql_dbconnect that is slow (the instantiating of BBDB) due to my db server being slow to connect to but somehow I don't think so, or that it loads a huge amount of files via require and include_once and so on. Couldn't say for sure though.

    Any ideas?

    Very grateful for input.

    edit: I forgot to ask, are you on VPS or dedicated server?

    Posted 2 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    This is a vps. Show me a sample bb-benchmark output.

    If you are on a host that uses NFS like Dreamhost, any program with many files like WordPress or bbPress will be very slow.

    Posted 2 years ago #
  3. andersson
    User has not uploaded an avatar

    member
    Joined: Apr '08
    Posts: 11

    offline

    I have excluded the queries. There's only 3 queries made here and it's for bb_meta and bb_user and meta on the user so no bigggie there.

    I'm on a VPS.

    As you can see, the time where bb_underscore_plugins_loaded = 0.381. That's just not competing in the same league as your site. Between Index.php being hit and footer.php itäs just 0.020 seconds which is basically nothing.

    Thanks for your input.

    === benchmark & query results ===

    06:48:28 up 53 days, 6:58, 0 users, load average: 0.11, 0.29, 0.64

    total page time: 0.477 seconds.

    time to reach each section:
    bb_underscore_plugins_loaded = 0.381
    bb_plugins_loaded = 0.401
    bb_init = 0.411
    index.php = 0.441
    header.php = 0.451
    footer.php = 0.471

    time to render page: 0.4747 seconds (query time subtracted)

    total query count: 3

    75 files, 1087.23 Kb

    Posted 2 years ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Are you using a php-opcode cache?
    You should be, you probably are not.
    Eaccelerator or APC or Xcache will really help.

    If you are on cpanel there's an option to rebuild apache/php with eaccelerator.

    You are using bbPress 1.0 which is 50% slower than 0.9 but still should not take that long.

    I suspect your host is using NFS even on a VPS.
    You may want to ask them if they use NFS or real physically attached drives.

    Try my experimental NFS detector:
    http://bbpress.org/forums/topic/bbpress-is-slow-like-godaddy-says/page/2#post-21920

    Posted 2 years ago #
  5. andersson
    User has not uploaded an avatar

    member
    Joined: Apr '08
    Posts: 11

    offline

    eAccellerator is in place.
    Since my host has added Zend Optimizer for reasons passing understanding, using APC is unfortunately not an option for now.

    Anyways, I'll switch back to 0.9.0.6 (build 1903) then and see if that helps.

    Thanks a lot for the input. It's really appreciated.

    Btw, you are probably correct about my VPS being on NFS. I'll try your experimental NFS detector.

    Sorry for the long post before. I see you have cut it off now. Very good, I just wasn't sure as to how much you needed to see what exact files were being loaded.

    Thanks again.

    EDIT:Did a test with your script. 0.236 seconds. Guess my VPS is not the problem then. Strange still that it should take close to half a second to "load" bbpress 1.0.

    I'll install 0.9.0.6 pronto and test that to see what happens.

    Posted 2 years ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Don't use APC if you have eaccelerator, that should be fine.

    Don't try to install 0.9 over 1.0, that won't work.

    It's possible one of the plugins is causing a problem.

    bbPress has a "safe mode" to bypass all plugins and use the default theme. You should try that for a minute to see if it changes the load time.

    To use safemode put this in your bb-config.php

    $bb->safemode= true;

    Posted 2 years ago #

RSS feed for this topic

Post a reply to “For _ck_, about performance”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
23 users online from in the past 30 minutes. 12 bots 10 guests 1 members: mccawphoto
7,229 views today 8,665 yesterday 14,010 peak. Most at once 63 today 48 yesterday 131 peak. Visited today: Dickinsonjohn9, shairah27, xiaotian, _ck_, engin1984, Augustine01, MichaelGomez, mccawphoto
2,240 posts in 380 topics over 63 months by 425 of 1,992 members. Latest: shairah27, Augustine01, MichaelGomez