Current time: 12-13-2017, 07:12 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help me improving First Byte Time
12-01-2011, 12:03 AM
Post: #11
RE: Please help me improving First Byte Time
The good news is that new relic is seeing average times in line with what WPT was seeing (400ms) so it's somewhere inside of the application and not in the web server (number of clients, etc).

I wouldn't make too many assumptions based on just the overview page about where the performance issues are coming from. The slow diagnostic reports are all for vbseo.php but that may be called asynchronously and not in the end user path (and may be called infrequently).

If you click on the overview chart it will take you to a breakdown of what entry points (php files) are contributing the most to the average times and if you click on one of those you will get more details (select the performance breakdown after you click on one of them). It should give you some visibility into where the time is going. You can get even more visibility if you're willing to instrument the code (new relic lets you time individual functions as well but doesn't natively know about the internals of v-bulletin).

It's a great dev tool but it does start to get into the inner workings of the application itself.

All of that said, it doesn't look like the bulk of your time is coming from database interactions or external web service calls so you may be able to improve things just by tuning PHP itself. Are you already running APC or some form of opcode cache? If not, you should. That alone should help pretty significantly.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2011, 03:47 AM
Post: #12
RE: Please help me improving First Byte Time
I currently run xcache.
So that's good that is not in the database.
I will ask my host to see if there is any tuning they can do on php.
Isn't xcache better For vbulletin than apc?
Find all posts by this user
Quote this message in a reply
12-01-2011, 04:42 AM
Post: #13
RE: Please help me improving First Byte Time
Sounds like you have that part under control. I don't have any experience tuning vbulletin so I'm not sure which works best. I tend to use APC as my first choice just because it is being rolled into PHP itself at some point but xcache, eaccelerator or APC all do roughly the same thing.
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2011, 06:39 PM
Post: #14
RE: Please help me improving First Byte Time
(11-30-2011 09:16 PM)Marvin Wrote:  Hi IcEWoLF,

I've been following your thread here and at vBSEO forum with great interest. I don't have anything helpful to add as far as troubleshooting or optimization, but your issue has prompted me to perform a test of my site, which is similar to yours in the add-ons used (vBSEO, vBadvanced, but I run the old vB3.8.x instead of the new vB4.x).

I did 10 tests with vBSEO enabled, and 10 tests with vBSEO disabled. When comparing the results of the 2 median runs, the TTFB was only just over 10 milliseconds slower with vBSEO enabled.

I'm also on a VPS.

Hi Marvin, I'll keep everyone updated.
I am having few things looked in new relic, next step is to give APC or other opcodes a try other than xcache and see if they play nice.

I am also forward a request to see if there is any optimizations we can do on php.

I also checked few tests on my old web host (wiredtree) and same configs/plugins but with WT it ran 400 m/s lower than the current host.
Find all posts by this user
Quote this message in a reply
12-01-2011, 08:52 PM (This post was last modified: 12-01-2011 08:54 PM by Marvin.)
Post: #15
RE: Please help me improving First Byte Time
Quote:I also checked few tests on my old web host (wiredtree) and same configs/plugins but with WT it ran 400 m/s lower than the current host.

I've just looked briefly through the test history, too, and I've noticed that on and before Oct 17 you were using LiteSpeed web server, while on and after Oct 19 the test results show you using web acceleration by Varnish. Are you still running LiteSpeed at this time, or not any more?

Marvin
Find all posts by this user
Quote this message in a reply
12-02-2011, 09:32 AM
Post: #16
RE: Please help me improving First Byte Time
That's an old test.
I haven't used litespeed since the first week of October I believe.
I no longer host my website @ wiredtree. I currently use Unixy.net
Find all posts by this user
Quote this message in a reply
12-03-2011, 07:31 AM
Post: #17
RE: Please help me improving First Byte Time
I am being recommended to move to nginx from apache, not sure if this is really going to improve my first byte time..
Find all posts by this user
Quote this message in a reply
12-03-2011, 07:38 AM
Post: #18
RE: Please help me improving First Byte Time
If your bottleneck is in the apache processing then it will though I didn't think that was included in the New Relic times. If vbulletin is expecting Apache though it might be a painful move (.htaccess files don't work in nginx, they have their own rules structure).

I will say that if it's an option, Nginx is WAY easier to scale than Apache and is freakishly fast (particularly if you are running php in php-fpm mode and not cgi).
Visit this user's website Find all posts by this user
Quote this message in a reply
12-03-2011, 07:42 AM
Post: #19
RE: Please help me improving First Byte Time
Vbulletin and vbseo are now compatible with nginx from what I've heard.
Friend of mine runs satelliteguys.us and he is on nginx.
He runs vbseo+vb4 like me. His site is really fast.
Find all posts by this user
Quote this message in a reply
12-03-2011, 10:05 AM (This post was last modified: 12-03-2011 11:07 AM by IcEWoLF.)
Post: #20
RE: Please help me improving First Byte Time
Well crap, looks like I may not be able to go Nginx, the reason is because I won't be able to run cPanel with it...

Also:
"We've optimized the server well but it seems like vbseo is pure PHP code that needs to optimized or perhaps rewritten. Looking at the vbseo.php code it does seem a bit sloppy and has a lot of room for improvement."
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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